close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Hide WA SA Profile

Thread began 4/11/2011 3:36 pm by Dennis | Last modified 4/18/2011 5:36 pm by Dennis | 2400 views | 6 replies |

Dennis

Hide WA SA Profile

Hi,

My dog club has two member account types, a single membership and household (2 person) membership. I used the WA SA Wizard to create a set of Log In/Registration pages. On the Profile page I list info for the Primary Member and the Household (2nd) Member. I would like to make unchangeable the information for the 2nd member based on the contents of a column in the database which has contains “Single” or “Household”. This is to prevent a member from adding member-2 to the profile and turning their single membership into the more expensive household membership.

From the Profile form code I can see examples how to just display an item from the database table or display the input form text box. But I don't have the PHP skills to create the condition statements.

Thanks,
Dennis

PS; I apologize for the poor subject line, I clicked submit before finishing it.

Sign in to reply to this post

Jason ByrnesWebAssist

put an if statement around the text boxes to only show them if it is a household membership:

php:
<?php if($row_RecordsetName['ColumnName'] == "Household"); { ?>
text box here
<?php ?>
Sign in to reply to this post

Dennis

Thanks Jason,

I am not having any success with this. if i place this code on my page

php:
<?php if($row_WAATKmyrecordsetname['Mbr_Status_M2'] == "Member"); { ?>

text box here
<?php ?>


text box here appears. It appears even with incorrect database information.

Dennis,

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the page so I can see the code in context.

Sign in to reply to this post

Dennis

Jason,

Is it safe to send you my SecurityAssist Wizard created profile page?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the profile page will not contain any user data, only code to retrieve it from the database.

Sign in to reply to this post

Dennis

This post has been deleted.

Dennis

Jason,

I was able to get this working.

Thank you for your help.

Dennis

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