Reply to Re: Putting database output in <option> field - how?

Your name:

Reply:


Posted by pritaeas on 06/11/07 21:15

"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1181592518.874215.125700@q75g2000hsh.googlegroups.com...
> On Jun 11, 3:15 pm, jobo...@hotmail.com wrote:
> > I'm trying to return to a user the result of his web form address
> > input, with one element being the country of his choice. If he
> > approves, the form forwards it as part of the approved data; if he
> > doesn't approve, he has the chance to select another country. The
> > following doesn't work (hope it's clear) -
> >
> > <SELECT NAME=\"country\">
> > <OPTION SELECTED VALUE=\"$Row[country]\"></OPTION>
> > <option>Afghanistan</option>
> > <option>Aland Islands</option>
> > <option>Albania</option>
> > <option>etc etc </option>
> >
> > How do I do it, plase? TIA.
>
> What "doesn't work?" How do you know it "doesn't work?" Is there an
> error message?
>

Try this:

<SELECT NAME=\"country\">
<OPTION SELECTED='selected'>$Row[country]</OPTION>
<option>Afghanistan</option>
<option>Aland Islands</option>
<option>Albania</option>
<option>etc etc </option>
</select>

[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

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