Jump to content

Handling http cookies in PHP!!!


gizmorattler

Recommended Posts

Okay, hello to all and good fortune. I'm working on a client project and I've already finished the main structure of the site. Now, I'm am attempting to set up a lead generating landing page architecture to build traffic for this terrific site!

 

I am trying to post craigslist ads that send the customer to the exact item that they clicked on in the craigslist ad. I could hard code this functionality in html, but this client has over 2,000 products...

 

Unfortunately, craigslist doesn't allow any other script other than HTML :( I got around this by using the Meta Data cookie functions. If all I wanted to do was forward the customer to the main site then that would work well for me... Since this is not the case here's the issue:

 

1. I want customers to click on an html ad and be sent to the landing page (index.php), carrying a metadata cookie.

2. After submitting basic info (validated in contact-form-handler.php) all while carrying the original cookie from the HTML ad I want the php to pick up the cookie.

3. I want the customer to go to a thank you page (contact-form-thank-you.php) all while carrying the original cookie from the HTML ad. Then I want the Thank You page to refresh and forward the customer to the link in the cookie.

 

Is this possible? I've included the files to what I've done so far... Please help!

18527_.zip

Link to comment
https://forums.phpfreaks.com/topic/263648-handling-http-cookies-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.