Jump to content

Query Strings and Session


Toshi

Recommended Posts

Hi All,

 

I'm a newbie here, I was doing this online booking calendar (basically i have a calendar, and the customer can click on a departure date, then return date and on the final page it will show both) using PHP Sessions. The problem i have is with the calendar. in the code i have this:

 

<td width="50%" align="left">  <a href="<?php echo $_SERVER["PHP_SELF"] . "?month=". $prev_month . "&year=" . $prev_year; ?>" style="color:#FFFFFF">Previous</a></td>

<td width="50%" align="right"><a href="<?php echo $_SERVER["PHP_SELF"] . "?month=". $next_month . "&year=" . $next_year; ?>" style="color:#FFFFFF">Next</a>  </td>

 

The problem is if i change the month, it enters a query string into the URL and on the final confirmation page it won't show the departure date. If i choose 2 dates in the same month then it works fine.

Question is how can i get the values from the 1st page (Departure page) to the last page despite there being query string

 

Any help will be greatly appreciated!

If you need more code, i'm happy to provide it

 

Thanks!

Toshi

Link to comment
https://forums.phpfreaks.com/topic/184410-query-strings-and-session/
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.