Well, I would not suggest buying another domain to test, I would just use your computer as a server using WAMP or XAMPP (search google). They come with Mysql(SQLite manager, phpmyadmin), PHP, Apeche). And that stuff..
When you ask for help and people tell you to replace something, such as:
Code:
$var = "arizona";
$state = $_POST['state'];
if($state == $var){
echo "You live in ".$var;
}
And you ask, how do I see if they don't live in arizona, someone will tell you to add:
Code:
else { echo "You don't live in".$var; }
Which is an addition to the code.
How ever, if you ask how to then redirect(if they don't live in arizona), and on the next page say thanks... Its differen't:
Code:
$var = "arizona";
$state = $_POST['state'];
if($state == $var){
echo "You live in ".$var;
} else {
header("Location: thanks.php");
}
The highlighted is an addition, and thanks.php would basically be an addition and its own thing - as it has no effect if the person does live in arizone... Kinda confusing b.c they're basically the same thing.
Bookmarks