Reply to Re: Space Issue with my PHP page

Your name:

Reply:


Posted by Geoff Muldoon on 05/17/06 02:28

mscurto@gmail.com says...

> 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?

Yes, It's a HTML issue not a PHP one. You need to double-quote any
strings with spaces in your inputs.

Example:
echo "<input type=hidden name=paddress value=$paddress>";
should be changed to
echo "<input type=hidden name=paddress value=/"$paddress/">";
or
echo '<input type=hidden name=paddress value="$paddress">';

GM

[Back to original 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

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