Membership Plugin - Just in Case - addForm.php & uploadAddForm.php

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 28, 2011   (RSS)

By Rusty - January 28, 2011 - edited: February 25, 2011

Just in case you were wondering, I thought I would link & attach the addForm.php and uploadAddForm.php snippets that have been graciously provided by the CMS Builder staff.

addForm.php - an example of a working form that inserts records and has basic data validation, etc.
Originally posted by Dave Feb 11, 2009

You will need to:
  • Update line 2 to include the correct path to your viewer functions

  • Update line 17 to include the name of the table you wish to enter data in
    • `{$TABLE_PREFIX}news` - you would change news to the name of your table

CAREFUL of the backwards apostrophes `, they're different than regular ones '.


uploadAddForm.php - an example of a working form that uploads an image. - REQUIRES CMSB v2.04 build 1 or +
Originally posted by Jason Jul 7, 2010

You will need to:
  • Remove Blank Line on Line 1 before the opening php

  • Update line 3 to include the correct path to your viewer functions

  • Update line 4 to include the name of the table you wish to upload image to



I had to to a little bit of searching and just wanted to help spread the knowledge and make it come up really easily in the search.
Rusty

Re: [design9] Membership Plugin - Just in Case - addForm.php & uploadAddForm.php

By design9 - July 28, 2011

Also, how do you add additional fields that you have created so that is written like the title field?