RE: [PHP] a quick one, self submitting jump menu
| From: | Daevid Vincent | Date: | Thu, 29 Dec 2005 03:03:51 +0000 |
| Subject: | RE: [PHP] a quick one, self submitting jump menu | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227948@lists.php.net to get a copy of this message | ||
While not PHP, this is a JS question..
<FORM NAME="JumpForm">
<SELECT NAME="JumpItem" onChange="jump_page();">
<OPTION VALUE='login_me_main.php'>My Account
<OPTION VALUE='login_new_main.php'>Sign Up!
</SELECT>
</FORM>
<SCRIPT>
function jump_page() {
with ( document.JumpForm ) {
if ( JumpItem.value != "" )
document.location = JumpItem.value;
}
} //jump_page()
</SCRIPT>
> -----Original Message-----
> From: Ross [mailto:ross@aztechost.com]
> Sent: Thursday, December 22, 2005 3:02 AM
> To: php-general@lists.php.net
> Subject: [PHP] a quick one, self submitting jump menu
>
>
> 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.
>
>
> Ross
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>