dagon;10958059 wrote:Tried nothing and it doesn't work - are you surprised at this result? :rolleyes:
Lol, Dagon. At least hes asking 😃
keram617;10958038 wrote:Honestly I have not tried anything yet
First off keram617, mess around with the mail() for a little bit(I mess around with coding for 1-2hrs) then tell us what you don't understand and post what errors your getting.
If you need a mail() tut go here: http://www.w3schools.com/php/php_mail.asp
The way I would set it up would be like this:
1. The information gets filled in.
2. It inserts the information into the database.
3. This is where the mail() comes in, this page saying: Thanks for filling out the form. Your information as been email to you, please click here(link) to log in.
P.S: Make sure to use the if,else statement to check if there is any unfilled out blanks so it won't automatically send them to the next page because then some of there information won't be sent..
Btw, to redirect someone if all there information is filled out it would look something like:
If ($Example !== "")
{
header('Location: Page.php')
}
else
{
echo 'You didn't fill in all the fields.';
}
Note: You will need to define your $example before the if and else statement.
That would look something like this:
$example = $_POST['example'];
If ($Example !== "")
{
header('Location: Page.php')
}
else
{
echo 'You did not fill in all the fields.';
}