Reply to RE: [PHP] a quick one, self submitting jump menu

Your name:

Reply:


Posted by "Daevid Vincent" on 12/29/05 05:03

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
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация