REQUEST for Workin Toplist Script

Started on the old forum in September 2010 · view the original in the archive · old links redirect here

#toplistreq

3 replies · 455 views · started 16 years ago · 1 min read

2 participants
grumpyguy Newbie · 7 posts #1

Can somebody here please post a workin toplist script, Ive searched the forum and most have missin parts or do not work lol

Thanks for anybody who helps 🙂

Ill help If I Can :)

something else Fellow · 2,296 posts #2

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.

grumpyguy Newbie · 7 posts #3

kewl thanks mate ill contact my server company bout the issue the mite be able to help me out a tad bit

Ill help If I Can :)

something else Fellow · 2,296 posts #4

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close