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:
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:
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.
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: [Rusty] Membership Plugin - Just in Case - addForm.php & uploadAddForm.php
By design9 - July 28, 2011
Thanks for this, it is great!
The only issue that I have with the upload form is that it displays the array on the user form page. Should that be hidden? What do I need to input so that doesn't show on the form?
See example:
http://www.charlotteparent.com/photos/form.php
Thanks!
April
The only issue that I have with the upload form is that it displays the array on the user form page. Should that be hidden? What do I need to input so that doesn't show on the form?
See example:
http://www.charlotteparent.com/photos/form.php
Thanks!
April
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?