I am new to this forum and also PHP
I need help concerning register_global, endif and urlencode
Register_global:
When register_global is turned off, we need to use the $_GET['...'] function to retrieve value sent from another page right ?
In my case, I am sure that the register_global is already turned off, however, in retrieving value passed from another page, I simply use $varName and it works. Why ?
endif:
Is the use of endif needed everytime I use if statement ?
In my case, when I use endif, the page is not working. So I just remove the endif, and everything works fine.
Here is part of the code:
if (!$dbCon)
die ("DIE");
else{
echo "Live";
mysql_select_db('TSProject', $dbCon);
$test = "Yey";
}
endif; // using endif will make the code not working
urlencode:
What does this function actually do ?
Thank you very much,
-Haku-