RE: [PHP] string question
| From: | John W. Holmes | Date: | Wed, 11 Jun 2003 10:55:40 +0000 |
| Subject: | RE: [PHP] string question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151040@lists.php.net to get a copy of this message | ||
> if a string is:
> $x="A.B. XYZ";
> and if I post it as a hidden form control and echo $_POST['x'] then I
> get:
> A.B.
> and not "A.B. XYZ" !
> What should I do?
Learn HTML. Use quotes around your attribute values:
<input type="hidden" name="foo" value="A.B. XYZ">
---John W. Holmes...
Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/