Jump to content

A simple idea gone haywire


Go to solution Solved by phppup,

Recommended Posts

It seemed like a simple idea for a snowy day, but now I've lost my way in the forest.

The plan: I have a landing page that will connect to either page 1, 2, or 3.

These pages all flow to page A.

On page A, I decided (big mistake) to say "I hope you enjoyed visiting our page X."

My idea was to create a $_SESSION['page] variable in each of pages 1,2,3 and provide the appropriate value accordingly.

When a user why to page A, the variable would follow and populate the sentence çorrectly.

If they went to page A directly or from the landing page, the variable would be blank bc there is no session value associated.

My first steps seemed to be okay, but then I couldn't clear the session from the landing page.

Is my implementation completely off?

Link to comment
https://forums.phpfreaks.com/topic/326494-a-simple-idea-gone-haywire/
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.