Hey guys.
I am developing a site, and would like to allow for users to check their email. What I need to know is if I can take a form and submit it to my php script. Then have the php script post the variables to another script elsewhere.
So I have a form:
<form name="webmail" action="/scripts/webmail.php" method="POST">Username:<br />
<input name="username" size="18" /><br />@domain.com<br />Password:<br />
<input name="password" type="password" size="18" /><br />
<input type="submit" value="Login" />
</form>
Now, my php script would take the username format it so that the email script would read it properly.
So my php script would be:
$user = $_GET['username'];
$pass = $_GET['pass'];
if($user != "domain_login"){
$username = $user."@domain.com";
}
else{
$username = $user;
}
//
// HERE is where I want to post the
// $username and $password vars
// to the next script.
//
So the question:
How do I post the variables to another script without user input?
Thanks for the help.
~Brett