Every example I've seen of form processing uses something like
<FORM ACTION="xx.php" METHOD="Post">
I don't mind doing it that way, but I want to perhaps have tidier code and one of my ways of doing this would be for a form action to, instead of loading a new php file and that doing the validation, make the form process a function
Is this possible?
I was trying some things out (bearing in mind I am new and have tried to search these forums for my answer) and had some code that looked like
<FORM ACTION="<?php 'function test()' ?>" METHOD="Post">
It wasn't doing anything so I guess I am doing something wrong and hoped someone might have some examples of where they have got this to work (or tell me I am being stupid and it's not possible )