close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

User Registration Form Full

Thread began 10/08/2010 11:01 am by matt159956 | Last modified 10/12/2010 1:13 pm by Jason Byrnes | 1341 views | 7 replies |

matt159956

User Registration Form Full

I am trying to add one additional field to the "users_Registration_full.php" file. All I want is a field for entering a company name. I have already added "userProperty" to the ps3_users table, and I know that I did that part right, but I can't seem to get the insert to work. What am I doing wrong here?

<p>
<label for="UserProperty">First Name:</label>
<span id="sprytextfield20">
<input name="UserProperty" type="text" class="WAATKTextField" id="UserProperty" onBlur="if (document.getElementById('firstNameServerValidation')) document.getElementById('firstNameServerValidation').style.display='none'" value="<?php echo(ValidatedField("usersRegistrationfull","UserProperty")) ?>" size="32" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
<?php
if (ValidatedField("usersRegistrationfull","usersRegistrationfull")) {
if ((strpos((",".ValidatedField("usersRegistrationfull","usersRegistrationfull").","), "," . "11" . ",") !== false || "11" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="firstNameServerValidation">
Please enter your first name. </span>
<?php //WAFV_Conditional users_Registration_full.php usersRegistrationfull(11:)
}
}
}?>
</p>

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to edit the Insert Record Behavior on the registration page using DataAssist to bind the new form element to the new database column.


With DataAsisst installed, open the server behaviors panel, Window -> Server Behaviors, then double click the insert record server behavior to edit it.

Dont change anything on the first page, click the next button, on the second page, select the database column, then click the lightning bolt icon next to value and select hte new form element.

Sign in to reply to this post

matt159956

What's the best way to create the new form element?

Thanks Jason,

What's the best way to create the new form element. The first time around I simply copied all of the code for the First Name entry and pasted it, then changed the code to what I pasted into my first post here.

Matt

Sign in to reply to this post

Jason ByrnesWebAssist

place your cursor where the element should go then go to Insert -> Form -> Text Field.

Sign in to reply to this post

matt159956

Insert Text Field

What if I want to duplicate the same type of Spry validation that the rest of the form has?

Sign in to reply to this post

Jason ByrnesWebAssist

place your cursor where the form element should be added then go to Insert -> Spry - > Spry Validation Text Field

Sign in to reply to this post

matt159956

Ps3

I am considering redoing all of my registration, login, logout forms, etc. using Security Assist but I wanted to ask if doing so could damage my Power Store 3 in any way. The following pages came supplied with all of the necessary forms, but I need a bit more customization.

users_Confirm.php
users_EmailPW.php
users_LogIn.php
users_LogOut.php
users_Profile.php
users_Registration_full.php

Would it be unwise to delete everything from the Main Content areas of these pages before starting from scratch with the Security Assist Wizard? Or should I leave that content there until after I run the wizard?

Also, in the Security Assist tutorials the database used has a user level access table, but the database for Power Store is slightly different, with the user access defined in the ps3 users table. Is there anything I need to do differently?

Sorry for the not so educated questions. My brain takes to graphic design much more readily than PHP code.

Thanks for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

no, do not recreate the pages using the wizard, instead you should edit the server behaviors on each of the pages to add the additional fields.


user level is defined in PS3 the same as the tutorial, the user levels are defined in the usergroup table, and related to the users table using the UserGroupId Column.

Sign in to reply to this post

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...