RE: [PHP] Java + PHP

From: Date: Thu, 02 Nov 2000 18:12:54 +0000
Subject: RE: [PHP] Java + PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23434@lists.php.net to get a copy of this message
> I have a JAVAscript: > > <SCRIPT language=JavaScript> > <!-- > function MM_jumpMenu(targ,selObj,restore){ //v3.0 > > eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); > if (restore) selObj.selectedIndex=0; > } > //--> > </SCRIPT> > > and pull-downmenu's in PHP: > > <select onChange="MM_jumpMenu('parent',this,0)" name=Phone> > <select onChange="MM_jumpMenu('parent',this,0)" name=Sorting> > > How can get the selected value (which is in the URL of the <OPTION > value=....> in a PHP-string? Try passing this: this.options[this.selectedIndex].value Chris

« previous php.general (#23434) next »