Hello,
The code below works well. It submits some variables into a MySQL database. How could I block the submission and redirect the user back to domain.com/index.php
if the conditions below are met?
Conditions:
$uid
has been used more 11 or more times in a calendar day.$cleanurl
has ever been used before.
Thanks in advance,
John
Code:
if(isURL($site1)==true)
mysql_query("INSERT INTO submission VALUES (NULL, '$uid', '$title', '$slug', '$cleanurl', '$displayurl', NULL)");
else
echo "<p class=\"topicu\">Not a valid URL.</p>\n";