Page 1 of 1

Learning PHP - What is this? self.location?

Posted: Thu Dec 11, 2014 11:25 am
by cecilchampenois
What is this code for? Is this to take you back to a specific page, or what?

print "<script>";
print " self.location='claimslist.php';";
print "</script>";

Re: Learning PHP - What is this? self.location?

Posted: Thu Dec 11, 2014 11:39 am
by Celauran
That's JavaScript, not PHP. Yes, it's to redirect you.

Re: Learning PHP - What is this? self.location?

Posted: Thu Dec 11, 2014 1:59 pm
by cecilchampenois
Merci Celauran.