Calling PHP functions
Posted: Sun Nov 27, 2011 8:03 am
Hi,
I have a form with action="checkquery.php"
In the checkquery.php, I hv several functions func1, func2, func3 for routine sql operations.
So my question is, how can i call a specific function of checkquery.php within the form.action attribute like
form action="checkquery.php?insert_student_records()". (this is WILD thinking ) Of course in MVC frameworks it would be URI segementing in the form class/function/params1/params1
Cos my desgin aim is to use multiple views of .html which consists of different data of different webpgs to be directed to checkquery.php.
The checkquery will do the mysql operations and return the results back to the .html pages.
The solution I can think of is using hidden fields to identify which view the form data is collected in the checkquery.php, verify the value then perform the msyql operation. Is there better alternate solution??
I know it may look as if I am trying to dig a "underground pass" thru MVC frameworks minus M and C.
I have a form with action="checkquery.php"
In the checkquery.php, I hv several functions func1, func2, func3 for routine sql operations.
So my question is, how can i call a specific function of checkquery.php within the form.action attribute like
form action="checkquery.php?insert_student_records()". (this is WILD thinking ) Of course in MVC frameworks it would be URI segementing in the form class/function/params1/params1
Cos my desgin aim is to use multiple views of .html which consists of different data of different webpgs to be directed to checkquery.php.
The checkquery will do the mysql operations and return the results back to the .html pages.
The solution I can think of is using hidden fields to identify which view the form data is collected in the checkquery.php, verify the value then perform the msyql operation. Is there better alternate solution??
I know it may look as if I am trying to dig a "underground pass" thru MVC frameworks minus M and C.