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
Old 08-02-2005, 02:25 PM Rules script
pipers dragon's Avatar
Extreme Talker

Posts: 190
Trades: 0
Does anyone know of a script that can make a pop up box that i can put a form in asking if they read the rules to either allow access you deny access to a page? AND I only want the pop up to appear once. I guess it would need cookies but i only want the person to have to answer once and then they can visit the page as many times as they want.
pipers dragon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-04-2005, 07:42 PM
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
Here's how you could do it, generally speaking.
Pick a language (server- or client-side - there are pros/cons for each).

Code:
read cookie
if(rules agreed to already) {
   show content
}
else {
   show rules
   if(agrees to rules) {
      set cookie
      show content
   }
   else {
      show notice about having to agree to rules
   }
}
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!
 
Reply     « Reply to Rules script
 

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