drop down menu issue

B

billy bob

I have input choice and value for the fields. For value I
put the website. But, when I publish, I cannot get the box
to send me to the links. thanks
 
S

Steve Easton

I meant can you post a URL so we can open
the page and take a peek at the code.
;-)
 
S

Steve Easton

Well as strange as this is going to sound,
it's the wrong kind of form.
You should do this with a java script.
This one will work.
Delete all of the old form info and replace it with this:
edit the urls and options as needed.

<script TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</script>
<form METHOD="POST" onSubmit="return dropdown(this.gourl)">
<p><select NAME="gourl" size="1">
<option VALUE>Choose a Destination... </option>
<option VALUE="http://www.yahoo.com"> Yahoo </option>
<option VALUE="http://www.google.com"> Google </option>
<option VALUE="http://www.altavista.com"> AltaVista </option>
</select> <input TYPE="submit" VALUE="Go There"</p>
</form>
 
J

John Kelley

I used to use
</td>
<td width="300" height="67"><form method="POST"
action="http://www.jlkconsulting.net/cgi-bin/jump.cgi">
<div align="center"><center><p><font color="#804040"
face="Arial"><strong><big>SUPPLIERS</big></strong></font><b
r>
<select name="url" size="1">
<option
value="http://www.dow.com/homepage/index.html">Dow
Chemical</option>
<option value="http://www.dupont.com">DuPont
Company</option>
<option
value="http://www.dupont.com/packaging/">DuPont
Packaging</option>
<option value="http://www.eastman.com">Eastman
Chemical</option>
<option
value="http://www.equistarchem.com">Equistar
Chemical</option>
<option value="http://www.mica-corp.com">Mica
Corporation</option>
<option
value="_______________________">_______________________</op
tion>
</select><input type="submit" value=" GO "></p>
</center></div>
</form>
But my provider killed my cgi script on the server I am
now on. I tried your option and could not get it to work.
Any thoughts or suggestions.
-----Original Message-----
Well as strange as this is going to sound,
it's the wrong kind of form.
You should do this with a java script.
This one will work.
Delete all of the old form info and replace it with this:
edit the urls and options as needed.

<script TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</script>
<form METHOD="POST" onSubmit="return dropdown (this.gourl)">
<p><select NAME="gourl" size="1">
<option VALUE>Choose a Destination... </option>
<option VALUE="http://www.yahoo.com"> Yahoo </option>
<option VALUE="http://www.google.com"> Google
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top