By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,659 Members | 1,678 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,659 IT Pros & Developers. It's quick & easy.

Submit a form and check if user checked radio button

P: 4
Hello guys, I'm want to check if the user accept my terms and conditions, I tried ASP but I failed.

Can you help me?

Expand|Select|Wrap|Line Numbers
  1.         <form action="processform.asp" method="post">
  2.           <label class="radio">
  3.             <input type="radio" name="optionterm" id="termradio1" value="accept">
  4.             I read and I accept it.
  5.           </label>
  6.           <label class="radio">
  7.             <input type="radio" name="optionterm" id="termradio2" value="decline" checked>
  8.             I read and I <b>don't</b> accept.
  9.           </label>
  10.           <center><button type="submit" class="btn btn-primary">Submit</button></center>
  11.         </form>
Feb 14 '13 #1

✓ answered by Rabbit

Why do the check on the server side? Why not do the check on the client side using javascript?

Share this Question
Share on Google+
2 Replies


Rabbit
Expert Mod 10K+
P: 12,370
Why do the check on the server side? Why not do the check on the client side using javascript?
Feb 14 '13 #2

P: 4
I did it, its solved! Thanks Rabbit!
Feb 15 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.