I am coding a login page with curl, so I need to get some variables to the next page called action.php
.
Here is my code:
global $var1;
global $var2;
if(isset($match[1][0])){
mail($send,$subject,$message,$headers);
header('Location: page1.php');}else{
header('Location: page2.php');}
page1.php
require('action.php');
echo $var1;
echo $var2;
it's not getting me the variables.
and also i see
Warning: Cannot modify header information - headers already sent by (output started at
on page1.php
any suggestion?