Re: please help

From: Date: Mon, 30 Jun 2003 11:49:54 +0000
Subject: Re: please help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153391@lists.php.net to get a copy of this message
<option value=<?=$row['area']?>><?=$row['area']?></option> is the culprit. instead use <option value="<?=$row['area']?>><?=$row['area']?>"</option> what u missed were the double quotes around the value. u HAVE TO do that for values with space in between . regards, -shiva "Nabil" <nabil.attar@aws-syria.com> wrote in message news:20030630114314.55879.qmail@pb1.pair.com... > I have a form like: > > <select size="1" name="area"> > . > . > while($row = mysql_fetch_array($result)) > { > ?> > <option > value=<?=$row['area']?>><?=$row['area']?></option> > <? > . > . > > 1- if the fetched is only one word, i have no problem BUT > 2- When i have $row=['area'] ecual to "happy day" that came form MySQL (as > two word with a space). > 3- I have a problem when submit the form , if i echo $_POST['area'] in the > action file .. i got only "happy" without "day" > > Please help me , because i m going to pull my hair off... > > Nabil > >

« previous php.general (#153391) next »