When ever i post in my forum it display the message two/more times. Pls how to stop this?
have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com
Started on the old forum in March 2011 · view the original in the archive · old links redirect here
When ever i post in my forum it display the message two/more times. Pls how to stop this?
have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com
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 />";
}
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!
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));
}