
Rusty
User
Jan 28, 2011, 1:11 PM
Post #1 of 3
(885 views)
Shortcut
|
|
Membership Plugin - Just in Case - addForm.php & uploadAddForm.php
|
Can't Post
|
|
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
(This post was edited by Rusty on Feb 25, 2011, 1:04 PM)
|