Forum Moderators: coopster
If you use url with?act=upload ending then use $_GET:
if ($_GET["act"] == "upload") {
print "Variable act is set to upload";
}
Or if you really want the $act variable you may use this structure:
if (($act = $_GET["act"]) == "upload") {
print "Variable act is set to $act";//will output the same as above
}
Hope this helps
Michal Cibor
PS. Why did you printed act == upload? It was just text, not comparison.