Hi. Im a new php user. Teaching myself. I need to findout how to do a script for: example: Im using oscommenrce for our online shop. Our payment company thats going to do the credit card transaction requires people who buys online to accept the terms and conditions before the payment go through. Without excepting the terms the continue button is inactive or must display a message that say please accept the tac. Any help would be appreciated.

Thanks
Etienne

You can do this a couple different ways, both of which that come to mind involve using forms.

You can either have a check box that says "I agree" and a "continue" button (this is the usual method, probably the best way) or you can have two buttons: I agree, I disagree.

Either way, you have to use PHP to process the form and determine whether or not the user agreed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.