|
i dont know if the title helps at all but im trying to write a form that redirects you to a page depending on what you chose. For instance on my pop-down menu i click 1, and when i hit submit it takes me to page 1.html. If i click 2 on the menu and hit submit it takes me to page 2.html. does anyne understand what im trying to say?
|
|
|
you can set the form action in a javascript function so in the form tag put onsubmit:javascript:checkForm(this)
then in the checkForm function do
function checkForm (form)
{
if (form.field.value==one_value)
{form.action='/forum/one_place.htm'}
else
{form.action='/forum/another_place.htm'}
}
|
|
|
function checkForm (form)
{
if (form.field.value==one_value)
{form.action='/forum/one_place.htm'}
else
{form.action='/forum/another_place.htm'}
}
|
|
|
|
|
|
|
|