Check from within function
Code: Select all
if ($count>=1){
exit ("you cannot submit twice");
}Code: Select all
echo function($_POST['n'], $_POST['k'], $_POST['t']);Moderator: General Moderators
Code: Select all
if ($count>=1){
exit ("you cannot submit twice");
}Code: Select all
echo function($_POST['n'], $_POST['k'], $_POST['t']);Code: Select all
<?php
function foo()
{
if(0 < 1)
{
exit('You have already submitted this form.');
}
}
echo foo();