Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Required Radio Button Needed
Old 09-12-2011, 08:35 PM Required Radio Button Needed
Novice Talker

Posts: 6
Trades: 0
I'm an old school html guy. Don't have any experience with PHP. However my shopping cart is out dated. Merchant services require that a customer click an "accept" button for the our "terms and conditions" of the sale.

Would anyone be interested in writing some code into a page a email them. I woudl be glad to shoot you a pmt via PayPal.

Thank you

Jay
mdjay is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-12-2011, 08:45 PM Re: Required Radio Button Needed
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
All you need is to disable the 'accept' if terms & conditions is not checked?

I could do this for you, for free
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 01-04-2012, 02:38 PM Re: Required Radio Button Needed
Novice Talker

Posts: 6
Trades: 0
Can anyone assist me here.
mdjay is offline
Reply With Quote
View Public Profile
 
Old 01-04-2012, 02:52 PM Re: Required Radio Button Needed
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by mdjay View Post
Can anyone assist me here.
Did you not read post #2???
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-04-2012, 02:56 PM Re: Required Radio Button Needed
Novice Talker

Posts: 6
Trades: 0
He never responded to my messages. I need someone that will help me...
mdjay is offline
Reply With Quote
View Public Profile
 
Old 01-04-2012, 07:37 PM Re: Required Radio Button Needed
Skilled Talker

Posts: 96
Name: Joan
Trades: 0
this is not too hard to do... you can use javascript to do this..
stivens is offline
Reply With Quote
View Public Profile
 
Old 01-04-2012, 07:47 PM Re: Required Radio Button Needed
Novice Talker

Posts: 6
Trades: 0
stivens can you help?
mdjay is offline
Reply With Quote
View Public Profile
 
Old 01-05-2012, 01:13 AM Re: Required Radio Button Needed
Skilled Talker

Posts: 96
Name: Joan
Trades: 0
yea I could help its really easy..
stivens is offline
Reply With Quote
View Public Profile
 
Old 01-05-2012, 10:03 AM Re: Required Radio Button Needed
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Let's be constructive from now on

HTML Code:
<!DOCTYPE html>
<html>
<head>
<title>Epically simple script</title>
</head>
<body>

<script type="text/javascript">
		function acc(ch) {
			var sub = document.getElementById('sub');
			if (ch) {
				sub.disabled = false;
			}
			else {
				sub.disabled = true;
			}
		}
</script>

<noscript>Sorry, Javascript must be enabled to use this page.</noscript>
<form action="formhandler.php" method="get">
	<div>
		<textarea id="terms" rows="5" cols="100">These are my terms &amp; conditions</textarea>
		<br/>
		<label>I accept these terms &amp; conditions</label><input type="checkbox" required onchange="acc(this.checked)" id="accept" />
		<br/>
		<input type="submit"  id="sub" disabled value="Go" />
	</div>
</form>

</body>
</html>
It's a checkbox, to allow the user to 'uncheck' the box if they, in fact, don't agree xD. You can make radio buttons 'uncheckable', too, but it involves a fair bit of Javascript that's unnecessary for this.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!

Last edited by Physicsguy; 01-05-2012 at 10:08 AM..
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 01-05-2012, 10:13 AM Re: Required Radio Button Needed
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.candsdesign.co.uk/article...-a-disclaimer/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-05-2012, 06:50 PM Re: Required Radio Button Needed
Novice Talker

Posts: 6
Trades: 0
It's a little more involved as the PHP and the Java have got to execute by hitting the 'Submit this order' value at the bottom of the page. So there is an overlap. That was the problem I was dealing with and the php submit would fail.

How do I make a scroll window like you just did to post the script as it is too long?
mdjay is offline
Reply With Quote
View Public Profile
 
Old 01-05-2012, 07:08 PM Re: Required Radio Button Needed
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Just use:
[php](PHP here)[/php]
[html](HTML here)[/html]
[code](generic code here)[/code]
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 01-05-2012, 07:29 PM Re: Required Radio Button Needed
Novice Talker

Posts: 6
Trades: 0
I did but it did not preview that way...

Still won't let me thought it's too long. email? send me a pm
mdjay is offline
Reply With Quote
View Public Profile
 
Old 01-06-2012, 07:53 AM Re: Required Radio Button Needed
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
It's a little more involved as the PHP and the Java have got to execute by hitting the 'Submit this order'
Assuming you mean javascript NOT Java.

It's not involved at all.

javascript runs before or when the submit button is "clicked" PHP runs AFTER the form data has been submitted and has been received by the server.

There is no "overlap", javascript is a clientside process PHP is a serverside process the two NEVER coincide.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Required Radio Button Needed
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.79396 seconds with 12 queries