Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7997497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:58:44+00:00 2026-06-04T14:58:44+00:00

I am currently using a method to make sure users accept the T&C and

  • 0

I am currently using a method to make sure users accept the T&C and the Warnings of my website before they order, the current method simply hides the payment options until the two boxes are checked.

But my client doesn’t like that, instead he wants the payment options to always be there, but if they try to click buy without checking the two boxes first it will show a warning box saying ‘please accept T&C and the Warnings’.

The page where the payment boxes can be found are: http://rickydawn.co.uk/wolly/subscribe.php

All of the code I currently use can be found in the source!

How would I go about this? I have this script that will make a popup appear when paypal button is checked, but how can I make it only appear when the boxes are not checked??

<script type="text/javascript">

function confSubmit()
{
return confirm("Have you read the Terms and Conditions of sale?");
}

</script>
</head>
<body>


<form onsubmit="return confSubmit();" target="paypal" 

action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="0000000">
<table>
<tr><td><input type="hidden" name="on0" value="Price + postage">Price + 

postage</td></tr><tr><td><select name="os0">
<option value="Price + postage France">Price + postage France €00,00</option>
<option value="Price + postage CEE or Switzerland">Price + postage CEE or Switzerland 

€00,00</option>
<option value="Price + postage Other Countries">Price + postage Other Countries 

€00,00</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="EUR">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_SM.gif" name="submit" 

alt="PayPal - The safer, easier way to pay online!" value="Submit Form">

</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:58:45+00:00Added an answer on June 4, 2026 at 2:58 pm

    You find the checked state of the TnC checkbox and execute the confirm pop-up based on its checked state:

    function confSubmit()
    {
        if(!document.getElementById("tnc_checkbox_id").checked)
        { 
            return confirm("Have you read the Terms and Conditions of sale?");
        }
    }
    

    You can do the same with the other checkbox as needed…

    Edit:
    In order to get rid of the “Cancel” modify your function like so (you should probably rename the function since it will no longer be a confirm dialog):

    function confSubmit()
    {
        if(!document.getElementById("tnc_checkbox_id").checked)
        { 
            alert("Have you read the Terms and Conditions of sale?");
            return false;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using this method in calling batch files in vb.net: Private Sub Button3_Click(ByVal
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
I am currently using a catch all method for all inputs on my form
currently i create dynamic database using CreateDatabase() method in Entity Framework. it executes sucessfully
I am currently ordering a list of custom objects using the IQueryable OrderBy method
I'm currently new into client-side programming, especially using the Jquery Ajax method to call
Drupal Question: Does anyone have a method of using Views and highlighting a selected/current
At my company, our current method of updating the database is to connect using
I'm currently using a homegrown method to run a process as a different user
We currently have developed an application using WCF. Our clients make connections to different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.