Jump to content

redirection form


junell

Recommended Posts

dear all who know :)

i am getting stuck on making (simple) form .

the form main work is to redirect visitors depend on their answer .

if (radio1 go to =  x page
if radio2 go to y page
if radio 3 then : enter email address + d specail code (after submit it should send email 2 support + redirekt to page x (email address and code  are must fields! if user doesnt enter error should be shown) .



<form method="get" action="" name="stepone">
<input checked="checked" name="option1" value="option1" type="radio">option1<br>
<input name="option2" value="option2" type="radio">option2<br>
<input name="trans" value="trans" type="radio">trans<br>
  <br>
  <input name="email" value="">
<input name="code"><br>
  <input type="submit"><br>
</form>

thanks in advanced!

june
Link to comment
https://forums.phpfreaks.com/topic/26768-redirection-form/
Share on other sites

well :) i think this is what i need , but it will will redirect visitor as soon as he choose the choise . .
(i mean without submitting) . but i will use it on the first 2 options .
about the third option it wont help caz :

option3 :
radio + enter email address(text field)+code(text field/password field)
after writting the email address and code it will send it to my email address and procced to x page (like the first option)

can anyone help me in making the last optopn to work propobly ?
Link to comment
https://forums.phpfreaks.com/topic/26768-redirection-form/#findComment-122675
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.