Jump to content

PHP redirect, after page has loaded


Daryl B

Recommended Posts

Hi All,

 

on my 'Register Member Page', if a user successfully fill's in all the fields, then they get sent to a new page where it say's "You have successfully Registered"

 

if( (!$fname == null) or (!$sname == null) or (!$email == null) or (!$username == null) or (!$password == null))

{

$query = "INSERT INTO members (Firstname, Surname, email, username, password)

VALUES('$fname', '$sname', '$email', '$username', '$password')";

mysql_query($query) or die(mysql_error());

mysql_close();

 

echo "You have successfully Registered";

}

endif;

 

 

 

What i wanted to do was show this page for about 10 seconds then, the user gets automatically directed to the login page.

 

Any information is great. Many thanks :-\

Link to comment
https://forums.phpfreaks.com/topic/62534-php-redirect-after-page-has-loaded/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.