Forum Moderators: coopster
index.html has a form actioned by mail.php.
mail.php processes the data and sends you an email.
Now you want to use the same data elements in another script to login someone?
If so at the end of mail.php add:
$domain="Location:http://www.mydomain/login.php?var1=".$var1."&var2=".$var2;
header($domain);
The var1, var2 from index.html will get passed to mail.php and then mail.php will redirect to login.php with the same values where you can process them again.
Simple & dirty solution that will work :)