Re: sending hidden value with form element
| From: | Dave Smith | Date: | Sat, 14 Sep 2002 21:06:40 +0000 |
| Subject: | Re: sending hidden value with form element | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21760@lists.php.net to get a copy of this message | ||
Be sure to use the proper HTML formatting by enclosing your values in
quotes:
echo "<input type=\"hidden\" name=\"sname\"
value=\"{$row['name']}\">";
The { } serves as an interpolator that tells PHP to evaluate the contents.
Good luck!
Dave
On Sat, 14 Sep 2002, Smita Manohar wrote:
> hello all,
> im having script in which i want to send hidden value with form element..
>
> ......
> $row = mysql_fetch_array($result)
> <INPUT type=hidden name=sname value=$row["name"]>
> ......
>
> now while sending this hidden value, if value of $row["name"] is "Smita
> Manohar", then the form element takes the value as "Smita" instead of
> "Smita
> Manohar". once it encounters blank spance it ignores rest of the charaters
> following the space. then how to pass such values???
> can anyone please help me out??
>
> thanks and regards,
> smita.
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
>
--
,-._.-._.-._.-._.-.
`-. ,-'
.----------------------. | |
| Cool nerds use ASCII | | |
| art at the bottom of | | |
| their emails. | | |
| | ,';".________.-.
| | ;';_' )]
| | ; `-|
|
. T- |
`----------------------._ \ | |
`-; | |
|..________..-|
/\/ |________..|
,'`./ >,( |
\_.-|_/,-/ ii | |
."' -/ .-"""|| |
/`^"-; | ||____|
/ / `.__/ | ||
/ | ||
| ||