SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Streamline my form development... [Help Please]

    Hi,

    I'm working on a site right now which uses around 20 forms (all slightly different, some have 10 input fields, others have 5 etc.).
    Each of them does some very basic Javascript Form Validation (checking for empty fields), then PHP Form Validation, then if no errors are found at that point it'll either INSERT or UPDATE the table in my db.

    However, I really feel I could be speeding up the process a fair bit.

    I have attached a typical form 'signup.php'.

    Basically I'd love to get some help in 'modularising' this particular script, so I could perhaps limit the amount of code in the script itself. Using functions, or whatever so I could even reuse elements across the rest of my site.

    I'd really like as many people as possible to chip in with this.


    Thanks for any help.
    Attached Files Attached Files


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •