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.
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 has
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 option tags but make the one the user selected
previously as the default...?
???
--
-
Michael Mason
Arras People
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 option tags but make the one the user
selected previously as the default...?
That's been asked and answered many
I ended up with this:
option selected?php echo $Variable; ?/option
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
option selected?php echo $Variable; ?/option
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 =
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 select name=\record\;
while ($record = mysql_fetch_array($results)) {
if ($_POST[record] == $record[ID]){
$SELECTED = SELECTED ;
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 option tags but make the one the user selected
previously as the default...?
???
Yes you can.
I'm not going
8 matches
Mail list logo