ADDING/CHANGING FIELDS AFFECTED BY THE SAMPLE SIGN UP FORM - Jun 1st, 2011


You can add, change, and remove any fields that you want to be automatically affected by the membership plugin sign up
form. Here’s how.

First, in the user accounts table create any fields that don’t exist.

Then open sample_signup.php

Near the top, you’ll find the error checking code section that starts with:



// error checking
$errorsAndAlerts = "";



If any of your new fields are going to be “required’ fields, here’s where you’d list them. If you’re removing
any, make sure you remove them here too. Copy existing lines of code and change the field name and message to match your
requirements.

Next scroll down to the “add user” section and copy an existing line of code and change the field name to match your
requirements.

Next, scroll down to the form in the body of your page and add the required fields by again copying and pasting rows
into your form and changing the information as required.

If you want some of your fields to be text areas instead of text fields, you can change this field format:



<td class="body-text-bold">City</td>
<td>
<input type="text" name="city" value="<?php echo htmlspecialchars(@$_REQUEST['city']); ?>" size="50" />
</td>
</tr>


To this for a 50 column, 6 row text area:



<tr>
<td class="body-text-bold">Describe Your Qualifications</td>
<td>
<TEXTAREA NAME="describe_discipline" COLS=50 ROWS=6 value="<?php echo
htmlspecialchars(@$_REQUEST['desctribe_discipline']); ?>"></TEXTAREA>
</td>
</tr>



You can further modify the look of a form using MAXLENGTH="n" to limit your fields to n characters (good for zip codes
and States for example.)



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service