Jump to content

PHP Redirect on successful form submit?


afish674

Recommended Posts

I want to put within my form logic a way of loading up a new page (i.e. login area) when my login form is submitted. I wondered what is the best way to do this? I read on another forum that this can be achieved by:

$url = 'thepageyouwanttogoto.html';    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; 

But I seem to remember from doing some JavaScript a while back that this is not a good way of re-directing and is penalised by Google (because you could trick users onto other domains unwittingly).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...