how would i execute a function that i define ie: function do_nothing_loop(){ }
through a form, that possibly would be on the same page as the function....
well, if you are submitting the form to itself, just add an if statement. something like this:
if($_POST['Submit']){ function do_nothing_loop(){ // do nothing. } }
// your form stuff. <form> .... </form>
what if the submit has a 'value' of 'cat' i.e: <input type="submit" value="cat">
does that mean that instead of $POST['Submit'] it would actually be $POST['cat'] ?
no, $_POST['Submit'] would have the VALUE cat..