Relaying post data in php?

  • Thread starter Thread starter iwasadog
  • Start date Start date
I

iwasadog

Guest
I have a html file that delivers information to my php script, check against a file on the server and then continues to another page with the information. Origionally i was using get with:
header("Location: file.php?login=variable");
but then i changed the method from get to post and now i dont know how to send the information from my php file to the next file. Anyone help me out?
 
I would suggest creating a new session variable and assigning its value to the post value you want to pass to the next page, ie:

<?
session_start();
$_SESSION['myvar']='this will carry';
?>
 
I would suggest creating a new session variable and assigning its value to the post value you want to pass to the next page, ie:

<?
session_start();
$_SESSION['myvar']='this will carry';
?>
 
Back
Top