Forum Moderators: open

Message Too Old, No Replies

form validation, including redirect on submit

         

wardy83

2:54 pm on Mar 6, 2006 (gmt 0)

10+ Year Member



Basically, im a total novice and want to know how its possible to use a drop down menu selection, which outputs the selected result in a email but also redirects to a diffferent page for each selection.

I'm guessing this will be a speparte function, I also want to includ validation as well.

All help appreciated. cheers!

wardy83

4:59 pm on Mar 6, 2006 (gmt 0)

10+ Year Member



Ok, thanks for all your help.... not!

I figured it out myself.. this is it if your interested:

function grabBrochurePreference() {
var j
j=document.MBA_Brochure.redirect.value

if (j==0) {
document.MBA_Brochure.brochure_preference.value = '0';
}

else if (j == '/special/mba/requestabrochure/thankyou/') {
document.MBA_Brochure.brochure_preference.value = 'Please Send Brochure';
}

else if (j== '/special/mba/requestabrochure/thankyou7/') {
document.MBA_Brochure.brochure_preference.value = 'Downloaded Brochure';
}

else { return true;}
}

</script>