View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Modifying fields in User Registration Solution Pack

Thread began 7/20/2009 6:27 pm by michellem310468 | Last modified 12/09/2009 3:22 pm by michellem310468 | 4197 views | 16 replies

Jon GibsonBeta Tester

Absolutely

Hello Sheila:

First, do not use the simple registration; use the users_Registration.php file, as it comes with the City, State, and Country options. That will take care of your first three fields.

Here are the general steps to adding new fields to your form (unless you have other webassist products that would help):

1. Add the new fields
2. Add the new field Validations
3. Add the new Inserts to the SQL insert

1. Add the new Month of Birth field (I recommend a drop down rather than a text box)
- Locate the area(s) in your forms where you want to add your four fields
- Insert a drop down menu
- you can use a php for loop to cycle through the months (if you want steps to that let me know and I will produce them for you).

2. Add the Validation
- on a fresh users_Registration.php file, locate line 74 or there abouts where you should see the UserState validation rule.
- highlight, copy and paste all of the UserState POST rule to a line right below the UserState rule
- change the UserState to read UserBirth (or whatever you named the field in your database)
- change the number at the end of the line from 17 to 20

3. Add the new Insert information
- locate line 99 (maybe 100 or 101 now) where the $WA_fieldNamesStr = is located.
- insert | UserBirth | between the UserState and UserZip fieldnames.
- this part is tough, but you need to copy the UserState isset($POST) information in the $WA_fieldValuesStr and paste it.
- rename the newly pasted line to read for your UserBirth.
- locate line 101 or so, where the $WA_columnTypesStr = are listed. Add a |',none,''| to account for your new UserBirth field.

That is about it. The last two steps are the toughest because you have to make sure you have all of the right characters in the right pattern. Take your time.

OK, hope that helps!
Jon

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...