Reply to Re: post of fetched value fails

Your name:

Reply:


Posted by Pedro Graca on 10/06/06 10:17

rukkie wrote:
> <?php while($nt=mysql_fetch_array($result2)){
> echo "<option value=$nt[customer]>$nt[customer]</option>\n";}
> ?>
[...]
> When I make a selection box, with fixed populated values (so values not
> fetched from the db) then after the submission, I get the correct info
> (values are not cutted to the first space).
>
> Is there anybody out there that can give a solution for this strange
> (to me) behaviour ? It would be uttermost appreciated !


What's the difference between the PHP generated HTML and the one with
fixed populated values?

I'm guessing PHP does

<option value=John Smith>John Smith</option>

whereas the fixed value is

<option value="John Smith">John Smith</option>

Notice the quotes on the second line?

--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация