Forums

This topic is locked

Custom MM_JumpMenu Problem.

Posted 01 Aug 2005 16:49:33
1
has voted
01 Aug 2005 16:49:33 Bobby Hodges posted:
Hi folks. having a problem with a jump menu that passes two variables.

Works just fine in FF, not at all in IE, it complains of an unterminated
string constant.
In FF, the url is formed like .snip..php?gTeamID=Albany&GOPPONENTID=Cook

This works fine in FF, jumps and everything. I can Paste this into IE and
it works, but the jump menu won't jump on it's own.

Anything obviously wrong here?

Using DWMX2004, php/mySql
Thanks for any help.

the jump code
<pre id=code><font face=courier size=2 id=code>
function MM_jumpMenu2(targ,selObj,restore){ //v3.0
eval(targ+".location='"+"showgamesgo.php?gTeamID=&lt;?php echo
$row_rTeams['gTeamID']?&gt;&GOPPONENTID="+selObj.options[selObj.selectedIndex].value+"'";
if (restore) selObj.selectedIndex=0;
}</font id=code></pre id=code>


The menu
<pre id=code><font face=courier size=2 id=code>
&lt;select name="menu1" onChange="MM_jumpMenu2('parent',this,0)"&gt;
&lt;option value="1"&gt;Select One&lt;/option&gt;
&lt;?php
do {
?&gt;
&lt;option value="
&lt;?php echo $row_teamList['gOpponentID']?&gt;"&gt; &lt;?php echo $row_teamList['gOpponentID']?&gt; &lt;/option&gt;
&lt;?php
} while ($row_teamList = mysql_fetch_assoc($teamList));
$rows = mysql_num_rows($teamList);
if($rows &gt; 0) {
mysql_data_seek($teamList, 0);
$row_teamList = mysql_fetch_assoc($teamList);
}
?&gt;
&lt;/select&gt;
</font id=code></pre id=code>

Edited by - bhodges616161 on 01 Aug 2005 16:51:00

Edited by - bhodges616161 on 01 Aug 2005 16:51:29

Reply to this topic