php-db | 2002091

Re: [PHP-DB] sending hidden value with form element From: Dave Smith (DavidSmith <email protected>)
Date: 09/14/02

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  |   |
                           `."' `-/  .-"""||    |
                            /`^"-;   |    ||____|
                           /     /   `.__/  | ||
                                /           | ||
                                            | ||

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php