[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-29 Thread rush
"Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all. > > I'm trying to retrieve values from a previously selected dropdown menu. For > text I simply use value="$Whatever" here is small example on dynamically cretaing listboxes, and selecting the items. http://www.temp

[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread David Robley
On Wed, 28 Jul 2004 21:19, Harlequin wrote: > OK David. > > But here's the conundrum: > > a User has already selected a value which is stored in the database. Can I > Display a range of tags but make the one the user selected > previously as the default...? > > ??? > Yes you can. I'm not goi

Re: [PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread James E Hicks III
I'd like to make a few changes here to hopefully answer the original question. On Wednesday 28 July 2004 01:35 pm, Ed Lazor wrote: echo ""; while ($record = mysql_fetch_array($results)) { if ($_POST["record"] == $record["ID"]){ $SELECTED = " SELECTED "; } else {

RE: [PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread Ed Lazor
> > Can you see any obvious problems I might miss.? You're specifying a variable for the option's text, but you also need to specify the option's value. For example, if you were retrieving data from MySQL: while ($record = mysql_fetch_array($results)) { echo "" . $record["Title"] . "\

[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread Harlequin
I ended up with this: Can you see any obvious problems I might miss.? -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all. > > I'm trying to retr

RE: [PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread Ford, Mike [LSS]
On 28 July 2004 12:50, Harlequin wrote: > OK David. > > But here's the conundrum: > > a User has already selected a value which is stored in the database. > Can I Display a range of tags but make the one the user > selected previously as the default...? That's been asked and answered many tim

[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread Harlequin
OK David. But here's the conundrum: a User has already selected a value which is stored in the database. Can I Display a range of tags but make the one the user selected previously as the default...? ??? -- - Michael Mason Arras People www.arraspeople.co.uk

[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread David Robley
On Wed, 28 Jul 2004 20:49, Harlequin wrote: > Hi all. > > I'm trying to retrieve values from a previously selected dropdown menu. > For text I simply use value="$Whatever" > > But for dropdowns I can't do this - has anyone else come across this > before...? > Surprisingly, yes. If the dropdown