Submit a form and check if user checked radio button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • los799
    New Member
    • Feb 2013
    • 4

    Submit a form and check if user checked radio button

    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?

    Code:
            <form action="processform.asp" method="post">
              <label class="radio">
                <input type="radio" name="optionterm" id="termradio1" value="accept">
                I read and I accept it.
              </label>
              <label class="radio">
                <input type="radio" name="optionterm" id="termradio2" value="decline" checked>
                I read and I <b>don't</b> accept.
              </label>
              <center><button type="submit" class="btn btn-primary">Submit</button></center>
            </form>
    Last edited by acoder; Feb 14 '13, 05:02 PM. Reason: Moved to ASP forum
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

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

    Comment

    • los799
      New Member
      • Feb 2013
      • 4

      #3
      I did it, its solved! Thanks Rabbit!

      Comment

      Working...