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. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.