junell Posted November 10, 2006 Share Posted November 10, 2006 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 pageif radio2 go to y pageif 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 Quote Link to comment Share on other sites More sharing options...
joshi_v Posted November 10, 2006 Share Posted November 10, 2006 It this what you are looking for?[code]<input name="name" type="radio" value="value" onClick="document.location.href='filepath' ">[/code]Regards,Joshi. Quote Link to comment Share on other sites More sharing options...
junell Posted November 10, 2006 Author Share Posted November 10, 2006 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 ? Quote Link to comment Share on other sites More sharing options...
fenway Posted November 10, 2006 Share Posted November 10, 2006 Other than mailto:, you have no choice but to submit this form somehow. Quote Link to comment Share on other sites More sharing options...
joshi_v Posted November 11, 2006 Share Posted November 11, 2006 Once you fill the all fields related to Third radio button...write a JavaScript function to submit the form. After submission you can send mail.As fenway said , i don't think there is any other option than this! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.