faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 18 people (28%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can I make a complete separation between Forms design and PHP programing (form fields validation, insert/update database, etc) ?

Jul 21st, 2000 18:43
Bill Fries, Matt Gregory, Alexandre Cunha,


You can have any degree of separation you want.
You can create your forms in HTML and have in-page validation with 
javascript and then use PHP to process the form when the POST method is 
called.  (Or any other server-side enabled tool for that matter).  
There is no need to have the design of the form dependant on the 
backend system.
Hi I found this very helpful 
http://www.builder.com/Programming/PHPIntro/index.html