Jump to content

Posting variable after a header refresh


JREAM

Recommended Posts

Is there a way to do this..

 

1. You save a page through a form.

2. The form does a header location..

3. You post a variable to the refreshed page to give the status.

 

would it be something like this:

header('location: xyz.php?status=good');

 

then at the top of the page,

if ($status == 'good'){ echo 'good';}

Link to comment
https://forums.phpfreaks.com/topic/161762-posting-variable-after-a-header-refresh/
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.