echo within function problem...help appreciated
Posted: Fri Jul 10, 2009 12:00 am
Hey guys when I use this function which is activated by a form via the post method located in another page, I use an if statement which error checks and exits with a comment to show the user if there is a problem. However when I call back the function I do not get the exit comment displayed however the exit works and the page exits. Here is an example of the code. Anyone got any ideas?
Check from within function
and the function call
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']);