Jump to content

PHP Redirect with $_POST data


psytae

Recommended Posts

I have a web page that uses $_POST to pass the ID from web page to web page as they fill out forms using

$ID=$_POST['id']

The last page of the form passes this and other information to a php page that inserts the information that was passed into a database I have set up and then redirects back to the first page of the form.

 

This is what I have so far.

 

 

<?php // Change to the URL you want to redirect to$URL="Start.php"; header ("Location: $URL");         $ID=$_POST['id'];?>

 

 

What I want to happen however is when it redirects, I want it to pass the ID information back to the main page again as well.  Can anyone help me out? 

Link to comment
https://forums.phpfreaks.com/topic/215631-php-redirect-with-_post-data/
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.