Jump to content

Archived

This topic is now archived and is closed to further replies.

Synergic

drop down menus...

Recommended Posts

I have a drop down menu, i also have a value so when the form is loaded i want to select the drop down menu item based on the string. I tried all combinations and i just can't get it to auto select the drop down menu item based on the string (they're EXACTLY the same) any ideas?

Share this post


Link to post
Share on other sites
You get the idea from this:

[code]
<?php

while($run_query_whatever)
{
if($_GET['selected'] == $this_value) $selected = "selected = \"selected\"";

echo <<<_HTML
<select name="name" value="$this_value" $selected>$this_name</select>
_HTML;
}

?>
[/code]

Share this post


Link to post
Share on other sites
Plese show your code, if it's not working then something isn't right, none of us can help you unless you help us help you. I mean we could play the guessing game, but that will not fix your problem in the shortest amount of time!

me!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.