Web Hosting Talk







View Full Version : Instead of using php?


trenzterra
05-30-2003, 09:58 AM
Hi, instead of using PHP, let's say I have a dropdown box.

I want to do something like this:

if currently selected in the dropdown box == abc, goto abc.html

how do I do this? I am not familiar with PHP and stuff.

jb4mt
05-30-2003, 06:04 PM
here's some javascript that works, strictly to give you an idea of how; you of course will have to alter this to your precise needs:

<select name="whatever" onchange="location=this[this.selectedIndex].value">
<option value="http://yahoo.com">what</option>
<option value="http://google.com">ever</option>
</select>

ilyash
05-31-2003, 04:20 PM
u can use what jb4mt said.. or u can use JSP or ASP

javascript would be faster though