Jump to content

Pros & Cons - Include form processing script in same file or separate file?


ArconneR

Recommended Posts

Hi everyone! I'm developing a stat tracking web app for the iPhone (based on the iWebkit framework) that is primarily comprised of form pages. Many of the forms will be reused for different sections of the app with only slight modifications to labels, titles, etc. The forms will also process the data the same way but will just submit to different mysql tables.

 

Because of the reuse of these forms I want to minimze the number of files that will need to be edited for each instance they're used. What are some of the pros/cons related to including the php form processing code WITHIN the form vs. a separate php processing file?Obviously I'll have fewer files but didn't know if one method is generally preferred over the other. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.