Re: a quick one, self submitting jump menu
| From: | David Robley | Date: | Thu, 22 Dec 2005 13:46:38 +0000 |
| Subject: | Re: a quick one, self submitting jump menu | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227808@lists.php.net to get a copy of this message | ||
Ross wrote:
>
> How can I self submit a page whne registered globals are off. Is there a
> way to use $_SERVER?
>
> What I am ultimately trying to do is use values from a jump menu...
>
> <form name="form2" id="form2" action=">">
> <select name="menu1"
> onchange="MM_jumpMenu('parent',this,0)">
> <option >option1</option>
> <option >option2</option>
>
> </select>
> </form>
>
>
> to self submit and use the submitted values in a if-else or CASE
> statement. This is all on the same page.
You would need to add a VALUE property to each of the OPTION tags, and
depending on the METHOD property of the form, chech the $_POST or $_GET
array
Cheers
--
David Robley
Vote Democratic... It's easier than getting a job.