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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Validation error problems

Thread began 2/22/2012 3:04 pm by h150477 | Last modified 2/24/2012 12:06 pm by h150477 | 1636 views | 8 replies

h150477

Sorted!

1. After I deleted all sessions in my tmp directory, the script worked as it should, using code like
allow if treasurer = <?php echo $_SESSION['level']; ?>

2. Groups - the secret it seems is to set up groups of groups like one, two, three, oneandtwo, notoneandtwo.

oneandtwo has groups one and two in it
notoneandtwo has all the groups that are not in group oneandtwo i.e. in this example, group three

Then you set up a rule that says:
Allow if <?php echo $_SESSION['level']; ?> is in oneandtwo -allows groups one and two
restrict <?php echo $_SESSION['level']; ?> is in notoneandtwo. - restricts group three


Set up a hidden region on the part of the page that you wish to hide and apply both the rules above to it.

That should hide the area to group three.
In this case you could also just say restrict if session variable is in three, but its better to have the inverse as well, in case you add some more groups that could complicate the logic.
If there was a criteria "not in group", you would save some code but there isn't.
Took a long time but I got there in the end.

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