You are here: Re: Space Issue with my PHP page « PHP Programming Language « IT news, forums, messages
Re: Space Issue with my PHP page

Posted by Rik on 05/16/06 19:50

MS wrote:
> I am a newbie to PHP so hopefully this is a easy question.
>
> I am pulling data off of one server, which holds our data base and
> posts it to my PHP page.
>
> I have the following code on my php page:
>
>
> $pfirstname = $_POST['NFIRST0'];
> $plastname = $_POST['NLAST0'];
> $paddress = $_POST['NSTREET0'];
> $pxaddress = $_POST['NEXTRAADDRESS0']; etc....
>
> For the $paddress variable, it is skipping anything after a space.
> For example, if the address is 1234 Main, the only data that pulls in
> to my php page would be 1234. It would skip the Main. This is also
> occuring with other variables as well.
>
> Anyone have any ideas to why this is happening?

I'd think the posting goes wrong, have you got a snippet of code from that
side?

What does print_r($_POST); say?

If $_POST['NSTREET0'] does have to right value, are you sure not casting
$paddress to an integer somewhere?

Grtz,
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация