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.

Coding Forum


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



Reply
Accept Terms and conditions form
Old 10-14-2005, 09:21 PM Accept Terms and conditions form
Average Talker

Posts: 24
Trades: 0
Hi there,

I have created a "terms and conditions" form using a script for my website. I have named this form register1.php. Once users agree to terms, the get redirected to register2.php where they need to fill out their name, details,etc.

The problem that I'm having is that if users just type mywebsitename/register2.php, they get send directly to the registration page totally bypassing the "terms and conditions" (register1.php) form and I don't want that.

What can I add or what can I do to deny people access to register2.php if they haven't agreed to register1.php?(terms and conditions) maybe add a message saying that they need to agree to register1.php befoe gainning access to register2.php?


Thanks
emrique007 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-18-2005, 10:32 AM Accept "Terms & Conditions" Statement
Ultra Talker

Posts: 255
Location: NY
Trades: 0
Hi emrique007,
As a matter of fact, I just found this "Accept Terms" script yesterday. It might be something you can use.

Hope this helps,
DianeD
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
Old 10-18-2005, 12:53 PM
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
That script sounds good, but only if the client has JavaScript enabled.
You could try several different approaches. You could just include a checkbox on the register2.php page with a pop-up of the terms or you could require that you visit register2.php from register1.php.

I'm not sure how its done in php (can do it in asp) but here is what you can do: create a script that is processed before all others

If referring page is not equal to "register1.php" then
go to register1.php
Else (this only leaves the possibility that they came from register1.php)
process the rest of the page.

The only issue I see with this is if you process the registration form in the same page, but if you don't then there shouldn't be a problem.

Dan
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Old 10-21-2005, 12:35 PM
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
Quote:
Originally Posted by ExpressoDan
If referring page is not equal to "register1.php" then
go to register1.php
Note that this solution requires the user to have sending of referrers enabled (not everybody has!).


You'd probably be better off having one registration page, with the T&Cs and a check box to accept them at the top.

If you're desperate for the registration form to only be displayed once the T&Cs have been accepted, you could put both on a single page, and unhide a DIV containing the form once the user has clicked the accept button. This, however, would require javascript, so offers no real advantage over the DynamicDrive suggestion.


Rufo
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Old 10-21-2005, 01:04 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Did none of the suggestions in this thread help?:
http://www.webmaster-talk.com/showthread.php?t=37431
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-21-2005, 01:13 PM
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
Well spotted: emrique007 seems to be rather good at double posting.
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Reply     « Reply to Accept Terms and conditions form
 

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