Learning PHP - What is this? self.location?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cecilchampenois
Forum Commoner
Posts: 47
Joined: Thu Nov 06, 2014 10:29 am
Location: Gilbert, Arizona
Contact:

Learning PHP - What is this? self.location?

Post 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>";
Cecil Champenois
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

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

Post by Celauran »

That's JavaScript, not PHP. Yes, it's to redirect you.
cecilchampenois
Forum Commoner
Posts: 47
Joined: Thu Nov 06, 2014 10:29 am
Location: Gilbert, Arizona
Contact:

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

Post by cecilchampenois »

Merci Celauran.
Cecil Champenois
Post Reply