So I have a form in index.php
<? requireonce("action.php"); ?>
<form action="action.php" method="post">
//stuff
</form>
I also have a function to handle that form in action.php
<?
function formHandle(){
//stuff
}
?>
How do I pass the form to formHandle()
entirely within index.php
? I don't want to call formHandle()
in action.php
because it's required in index.php
- and I don't want it to run upon page opening.