Jump to content

[SOLVED] Passing Variable Thourgh Header Redirect


phpretard

Recommended Posts

$event=$_GET['event'];

 

header( 'Location: http://www.website.com/index.php?page=checkout&event=$event' );

 

The redirect works but the address bar reads:

 

http://www.website.com/index.php?page=checkout&event=$event' <---should be event=Sports

 

I need the $event.

 

It work throughout the site exept when a header redirect is used.

 

Any thought?

 

 

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.