Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
Membership Plugin - Just in Case - addForm.php & uploadAddForm.php

 

 


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)
Attachments: addForm.php (2.39 KB)
  uploadAddForm.php (4.73 KB)


design9
User

Jul 28, 2011, 10:04 AM

Post #2 of 3 (725 views)
Shortcut
Re: [Rusty] Membership Plugin - Just in Case - addForm.php & uploadAddForm.php [In reply to] Can't Post

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


design9
User

Jul 28, 2011, 11:34 AM

Post #3 of 3 (723 views)
Shortcut
Re: [design9] Membership Plugin - Just in Case - addForm.php & uploadAddForm.php [In reply to] Can't Post

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