Log In Function

Another problem I was having was my “redirectTo(“index.php”)”  wasnt working, I later found out with help from Kyle that there wasn’t a function made for it, so after some help I had this

function

 

function redirectTo($newLocation) {
header(“Location: ” . $newLocation);
exit;
}

here the code is telling the computer to create a new function “redirectTO()” and within this function there is a variable called “$newLocation,” on the second line the code is saying that the “$newLocation” will be equal to what is entered.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: