RE: [PHP-DB] sending hidden value with form element

From: Date: Sat, 14 Sep 2002 12:07:25 +0000
Subject: RE: [PHP-DB] sending hidden value with form element
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21754@lists.php.net to get a copy of this message
Hi you need quotes in the html (good practice anyway)- when it meets the space it thinks that is the end if the variable print('<INPUT type="hidden" name="sname" value="'.$row["name"].'">') HTH Peter ----------------------------------------------- Excellence in internet and open source software ----------------------------------------------- Sunmaia www.sunmaia.net tel. 0121-242-1473 ----------------------------------------------- -----Original Message----- From: Smita Manohar [mailto:smitamanohar@hotmail.com] Sent: 14 September 2002 10:53 To: php-db@lists.php.net Subject: [PHP-DB] sending hidden value with form element 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#21754) next »