How to stop this

Started on the old forum in March 2011 · view the original in the archive · old links redirect here

4 replies · 420 views · started 15 years ago · 1 min read

5 participants
Jervy Senior · 250 posts #2

Just don't post in your forum and it will be alright.. 😛

djdevil89 Senior · 287 posts #3

web or wap forum?

Jervy wrote: Just don't post in your forum and it will be alright.. :P

very helpfull.........

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
frostymarvelous Senior · 266 posts #4

Jervy wrote: Just don't post in your forum and it will be alright.. :P

Nice. Lmfao

Perfection comes at a cost

I accept liberty!

CreativityKills Lead · 833 posts #5

Its basically ur network. Add key to ur form, and reset it after a post. Simple.

Added after 9 minutes:

// form example
<?php
$_key = $_SESSION['key'] = substr(md5(uniqid(rand(), TRUE)), 0, 12);
echo '<input type="hidden" name="key" value="'.$_key.'" />', "\n";

// validation example
<?php
if( ! empty($_POST['key']) AND $_POST['key'] === $_SESSION['key']){
// post message

// reset key
$_SESSION['key'] = md5(uniqid(rand(), TRUE));
}

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