How to code a submit button to take user to a specific website

G

George

I want to supply users with codes. When they enter the code at a specific
website and press SUBMIT, they will be directed to a different website (based
on the code entered). For ex. Code LV001 goes to website www.LV001.com.

Thanks in advance for your help.

George
 
J

Jon Spivey

Hi George,
This probably isn't exactly what you want but it should get you started
<form>
enter code <input type="text" name="code">
<input type="button" value="go to site" onclick="location.href='http://www'
+ this.form.code.value + '.com'">
</form>
 
Top