2 Questions, Form handling and Reflection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tua1
Forum Commoner
Posts: 28
Joined: Thu May 15, 2008 9:30 pm

2 Questions, Form handling and Reflection

Post by tua1 »

Hello

I want to create something which I called automatic form handling system 8) :lol: using only xml file.

All I want to is to create xml file that contains all validation properties (length, regex etc), so a js script and php can refer to it.
I want to find correct form by name attribute, which when I want to use with php I must use hidden field.

Is this possible that somebody can change tag attribute name? ex. <input type="hidden" name="frmname" value="frm1">
If yes how can I else know that request came by a form submitting? I know about $_POST['submit'], I don't know about $_GET, but have no idea that I can trust to it.

About Reflection
I wonder if I can use reflection for dynamic creating basic sql statements from model object,using the same names of properties that db tables has,

what about efficiency (in using xml for validation too)??

Could somebody give me advice?
Post Reply