Results 1 to 4 of 4
  1. #1

    Easiest way to make a warning page first in php?

    Hello, could anyone please provide a working php example of a page that will display with a warning, and the user has to click a button to continue. Then this value can be stored in a session so that the next time they visit the site their option will be saved and they can just go to the page right away without the warning message? Thanks

  2. #2
    Join Date
    Feb 2003
    Location
    AR
    Posts
    2,381
    Cookies are probably the best way to accomplish this. Just setcookie() to expire far in the future. On page load, check for cookie. If it exists, redirect to content. If it doesn't, show warning.

  3. #3
    Join Date
    Apr 2009
    Location
    Pittsburgh, Pennsylvania
    Posts
    582
    Quote Originally Posted by lexington View Post
    Hello, could anyone please provide a working php example of a page that will display with a warning, and the user has to click a button to continue. Then this value can be stored in a session so that the next time they visit the site their option will be saved and they can just go to the page right away without the warning message? Thanks
    has to be a cookie, because sessions expire after the browser has been closed.


    Quote Originally Posted by ThatScriptGuy View Post
    Cookies are probably the best way to accomplish this. Just setcookie() to expire far in the future. On page load, check for cookie. If it exists, redirect to content. If it doesn't, show warning.
    grats on post 2k

  4. #4
    Join Date
    Feb 2003
    Location
    AR
    Posts
    2,381
    Quote Originally Posted by cselzer View Post
    grats on post 2k
    Eek...I need to get to work.

Similar Threads

  1. the easiest way to make proprietary CMS ?
    By jjk2 in forum Programming Discussion
    Replies: 2
    Last Post: 08-31-2008, 10:22 PM
  2. Easiest/best way to make an animated image?
    By Amish_Geek in forum Web Design and Content
    Replies: 0
    Last Post: 04-29-2005, 04:42 PM
  3. The easiest 10 bucks you could make doing flash
    By MaxHosting in forum Employment / Job Offers
    Replies: 5
    Last Post: 10-26-2003, 09:45 PM
  4. PHP Navigation: easiest way to make one
    By adoptME in forum Programming Discussion
    Replies: 2
    Last Post: 04-22-2003, 09:47 PM
  5. The easiest PHP MySQL script you'll be hired to make
    By tvkill in forum Employment / Job Offers
    Replies: 3
    Last Post: 08-29-2002, 01:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •