close ad
Databridge V2 with MySQLi support IS Now Available!
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 | 1808 views | 8 replies


Thanks again and some more questions.

Thankyou. That is now fixed, but it was easier at this stage to delete all the files and change the values in the preset.

I now have more problems:
I have a rule called "is treasurer" that states
restrict if <?php echo $_SESSION['level'] <> "treasurer";?>
allow if <?php echo $_SESSION['level'] = "treasurer";?>

The idea being only to show the tab if the user is a treasurer.

This rule is applied to a tabbed panels tab to control a show region behaviour as follows:

<?php if(WA_Auth_RulePasses("is treasurer")){ // Begin Show Region ?>
<li class="TabbedPanelsTab" tabindex="0">Treasurers</li>
<?php } // End Show Region ?>

This fails because the login page does not send a value for the session variable $_SESSION['level'] as is proved by running the statement <?php session_start() ;Print_r($_SESSION); ?>, on the landing page, the output of which is:

Array ( [WAENCRYPTEDRETURNUSED] => [WAENCRYPTEDRETURNSUCCESS] => [SecurityAssist_usr_id] => 49 ) even though the session box shows the Session ['level'] is available , it is obviously not set.

The page to which the login page redirects did not have a recordset containing the user's level, so I used the SecurityAssist_usr_id session variable to select the level of the user in a new record set, and changed the rule as follows:

restrict if "treasurer" <> <?php echo $row_levelset['level']; ?> (do not show the panel if the level is not equal to the string "treasurer")

allow if "treasurer" = <?php echo $row_levelset['level']; ?> (show the panel if the level is equal to the string "treasurer" )

I tried it with all variations of inverted commas around the word treasurer with the same results. No matter what level of user I select, the region does not show even when the page prints the value of the level variable as being "treasurer".
I thought that the idea should work, but cannot determine why it does not.

1.Is it not possible to set the session['level'] variable + others in the login page. If so, how?

3. How do the groups work? The system show how to create groups, but I cannot see how to use them, much less how to compare them with a the group that a user could belong to that has to be in a database.

Sorry to be a pain, but it is really a problem.

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





Ease of use


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