Nedd customer to check box before proceeding

Posted on 2011-10-12
Last Modified: 2012-05-12
Need to ensure that the IAgree button is checked before customer can proceed to the next step.
Thank you
<div class="name">
		<h4>Order Comments:</h4>
    <div class="details-text">
   	  <p class="eC_OrderInfo"><td><textarea name="OrderComments" id="OrderComments" cols="80" rows="6"><?php echo((isset($_POST["OrderComments"]))?$_POST["OrderComments"]:"") ?></textarea></td></p>
      <p class="eC_OrderInfo"><br />
	  if (isset($_GET['terms']))  {
        	  <span style="color:red">You must accept the terms to continue.</span>
	  ?><br />
        	  <input <?php if (!(strcmp(((isset($_POST["IAccept"]))?$_POST["IAccept"]:""),1))) {echo "checked=\"checked\"";} ?> name="IAccept" type="checkbox" id="IAccept" value="yes" />
       	    By Checking this box you give your digital signature that 
You agree with the <a href="/~ps4/page.php?Footer Pages=3">Terms of Sale </a></p>
      <p class="eC_OrderInfo">We do not sell, trade, or rent your personal information to others.</p>
      <p class="eC_OrderInfo"> <a href="/~ps4/page.php?Footer Pages=4">Our Online Privacy Policy</a> continues our   commitment to       serve   you and to protect your privacy online.</p>
      <p style="color:red"> Please refer to <a href="/~ps4/page.php?Footer_Pages_2=4">Shipping Rates </a>for approximate freight costs. </p>
      <p class="eC_OrderInfo"><span style="color:red">Please note: We ensure the best possible shipping rates for all of our customers. </span></p>
        <div class="separator">&nbsp;</div>

Open in new window

Question by:glozinski
    LVL 5

    Assisted Solution

    check to see that php code you have is in the Submit button e.g

    if (isset($_POST['Submit1'])) {


    Inside of this code, you can now we have another isset( ) function:

    if (isset($_GET['terms'])) {


    This time, we're checking to see if a checkbox was set.
    LVL 5

    Assisted Solution

    U might want to use $_POST.

    You can also use javascripts to do this see an example here:
    LVL 70

    Accepted Solution

    You can also highlight the checkbox in Design View, then switch to the Spry tab and select "Spry Checkbox Validation" to add some JavaScript that will not submit the form unless the checkbox is checked.  

    Author Closing Comment

    jason1178 was the one easiest for me to implement
    thank you all for assisting....

    Featured Post

    Course: HTML5 Specialist

    HTML5 development skills are critical to all developers. HTML5 is the foundation to almost any development process. That's why business, design studios, development shops and other organizations need HTML5 developers. Get your foot in the door as a HTML5 specialist.

    Join & Write a Comment

    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now