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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Requiring Terms are read before proceeding
Old 09-30-2009, 06:24 PM Requiring Terms are read before proceeding
Extreme Talker

Posts: 216
Trades: 0
I have a web page where the visitor pays a fee before proceeding. I'd like to add a requirement that the visitor "check" that he has Read The Terms, before he can proceed to pay. I have this html code of the pay page here:
(There is also a php page that works with this html page).
Code:
<!--Begin Wide Column-->
<div id="column-wide">
  <div id="generic-container" style="height:500px;">

  <div style="margin-left:12px; float:left;">
    <img src="themes/[var.user_theme]/images/icons/members_32.png" alt="members" width="32" height="32" align="absmiddle" />&nbsp;&nbsp;<strong>Pay Fee:
    &nbsp;<!--[var.members_total;comm]--></strong>
  </div>
  <div style="margin-right:12px; float:right;">
  </div>
  <br />
  <br />

  <div id="members-search">
<br>
	<table style="margin: 10px auto;border:1px solid lightgrey; background:lightyellow">
	     <tr>

		  <td width="150px"><br><u>Details</u></td>
		  <td width="150px"><br><br><u>Pay Fee</u><br><br></td>
		  <br>
	     </tr>
	     <tr>
		  <td><br>Pay Fee<br><br></td>
   		  <td>
               <form action="payment/paypal_start.php" method="post">
                 <input type="hidden" value="[var.user_id]" name="uid">
                 <input type="hidden" value="1" name="cre">
                 <input type="hidden" value="Pay Fee" name="itnm"><!-- Must match paypal_ipn.php name  -->
                 <input type="submit" value="0.01" name="valu">              <!-- Set dollar amount of fee here.  -->
               </form>
            </td>
	     </tr>
          <!-- ================================================================= -->
	</table>
<br><br>
</div>
</div>

<!--End Wide Column-->
And I grabbed this line of code from the Registration Page and added into the pay page, but of course it didn't work, by me just adding it:

Code:
     <div style="margin-left:30px; float:left;"><a href="page.php?page=3" target="_blank"><span style="color: #800000;"><u>Read These Terms</u>&nbsp;</span></a>
	          &nbsp;&nbsp;<b><span style="color: #000000;">Click Here</span><input type="radio" value="yes" name="terms" [var.checked] /><span style="color: #000000;">To Agree To The Terms</span>
        </div>
Can you help me integrate a "required to read" instruction before proceeding, into the pay page?

Thanks
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-30-2009, 06:56 PM Re: Requiring Terms are read before proceeding
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Try to add something like this to your form:
Code:
<input type="checkbox" name="agreement" id="agreement" value="yes" /><label for="agreement">Agree to the Terms</label>
Then, on the next page check for a form variable called "agreement" with the value of "yes"

You could also do this with javascript, but it is better to use php (or whatever server side language you prefer) since a user can just turn off javascript and bypass the form that way.
__________________

Please login or register to view this content. Registration is FREE

Last edited by angele803; 09-30-2009 at 06:58 PM..
angele803 is offline
Reply With Quote
View Public Profile
 
Old 09-30-2009, 07:55 PM Re: Requiring Terms are read before proceeding
Extreme Talker

Posts: 216
Trades: 0
Thanks for the reply, but the next page is when you're directed to Paypal log-in. Can you provide additional help?

thanks
chrisj is offline
Reply With Quote
View Public Profile
 
Old 09-30-2009, 11:30 PM Re: Requiring Terms are read before proceeding
MDwebdev85's Avatar
Extreme Talker

Posts: 209
Location: North Carolina
Trades: 0
If a user is "required" to agree to the terms and conditions....what about viewing the source...the link to the next page is displayed allowing the agreement to be bypassed...
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
MDwebdev85 is online now
Reply With Quote
View Public Profile Visit MDwebdev85's homepage!
 
Old 10-01-2009, 09:03 AM Re: Requiring Terms are read before proceeding
Experienced Talker

Posts: 38
Trades: 0
you could use SpryValidation code, has a separate javascript and css file. very handy for making sure someone selects something
__________________
I am thewebtaylor!! Website design, SEO and marketing.


Please login or register to view this content. Registration is FREE
thewebtaylor is offline
Reply With Quote
View Public Profile
 
Old 10-02-2009, 01:00 PM Re: Requiring Terms are read before proceeding
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
You could create an "in between" page that checks for the "agreement" variable. If it is there, you could continue to pass them on to paypal, and if it is not, you can redirect them back to the form.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Requiring Terms are read before proceeding
 

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 0.76761 seconds with 12 queries