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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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>
 

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

Back
Top