Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2002091

RE: [PHP-DB] sending hidden value with form element From: Peter Lovatt (pjln1 <email protected>)
Date: 09/14/02

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 <email protected>]
Sent: 14 September 2002 10:53
To: php-db <email protected>
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

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