close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

HTML Editor Dynamic Checkbox

Thread began 9/12/2011 8:16 am by Sly Verano | Last modified 9/12/2011 2:45 pm by Sly Verano | 1139 views | 3 replies

Jason ByrnesWebAssist

set the checked value for the Prfesor checkbox and the student checkbox to 1

in your database, you will need 2 new columns, forProfs, forStudents

bind the forProfs column to the profesors checkbox and the forStudents column to the students checkbox.


you users table will also need a column to mark the userType as student or professor. Lets say we call this column "userType" and give it a value of 1 for students and 2 for professors


In the authenticate user server behavior on the login page, you will set the third step to store the userType column into a session variable when the user logs in.


then where you want to output the record use an if statement:


php:
<?php if(($_SESSION['userType'] == "1" && $row_recordsetName['forStudents'] == "1") ||($_SESSION['userType'] == "2" && $row_recordsetName['forProfs'] == "1"))

<?
php echo $row_recordsetName['pageContent']; ?>
<?php 
?>

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