REQUEST for Workin Toplist Script
Started on the old forum in September 2010 · view the original in the archive · old links redirect here
They work but they rely on Globals being turned on .... which u had same problem in the other topic you posted here 😛
The Better way of getting them working is to use $_GET and $_POST collection methods to collect sent data.
Globals are turned off on better severs on purpose as they are a security threat.
The missing collection methods missing in the scripts depends on what has been sent in the form previously simple form:
echo "<form action=\"index.php\" method=\"POST\">"; //form start... notice here the method is POST it can be GET
echo "<input name=\"yourname\"/>"; //here is the data you want to collect... notice i have named it yourname
echo "<input type=\"sumbit\" value=\"Go\"/>"; //to sumbit a form
echo "</form>"; //end form
Now To Collect the data above if globals are turned off you have to use:
$yourname = $_POST["yourname"];
if you had have your form method as GET you would have had to collected it like this:
$yourname = $_GET["yourname"];
You Can Also Pass Variables through url`s eg: http://ursite.con/index.php?yourname=hello
the collection method for urls is
$yourname = $_GET["yourname"];
You can also use:
$yourname = $_REQUEST["yourname"];
REQUEST collects the variables if the method is POST or GET but you are safer to limit the collection method if possible to POST or GET rather than use REQUEST