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

rating

show username

Thread began 10/13/2015 9:25 pm by natenorbie427772 | Last modified 11/03/2015 8:21 pm by Ray Borduin | 943 views | 10 replies |

natenorbie427772

show username

I have a home page that has security assist login on it. It has UserEmail and UserPassword to login to "agent" database. That works however would you be so kind to give me a step by step as to how I would show the users email in a table field once they have logged in? Like "Welcome, Nate"? I tried a couple of steps from other questions but there isnt anything that starts with a blank slate. Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

In the authenticate user server behavior you have an option to save one or more fields from the users table as Session variables. Just choose the email field to be stored in the session and then you can display it on any page after they have logged in like:

<?php echo(isset($_SESSION['UserEmail'])?$_SESSION['UserEmail']:""); ?>

(this code assumes you saved it in the session as "UserEmail" but you have a chance to set it to whatever you want in the UI)

Sign in to reply to this post

natenorbie427772

Working but problem

I got the name to show up after logging in now which is in a "show region" that becomes active along with the name. Problem now is if you go to another page and return the "show region" is still open but the name is gone. Any suggestions. Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

What is the code you are using?

Sign in to reply to this post

natenorbie427772

<?php echo((isset($_POST["Log_In_group_Email"]))?$_POST["Log_In_group_Email"]:"") ?>

Sign in to reply to this post

Ray BorduinWebAssist

You will want to be using a Session variable value. A Post value only exists when a form is posted to it. Session is the the way to save a value over a browser session across multiple links to different pages.

Sign in to reply to this post

natenorbie427772

Registration

I have a registration form and fields that are not required are still showing up required on submit, The address is the one cuasing the issues. Here is the code, am I missing something?

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the actual page instead of copy and pasting the contents into the forum. It is much easier to read when I can open it in Dreamweaver and then I can reference line numbers.

In your case, just remove this line of code:
$WAFV_Errors .= WAValidateRQ((isset($_POST["Address_1"])?$_POST["Address_1"]:"") . "",true,7);

it is what is making the address field required. Pages will have both client and sever validation. The client validation is controlled in the form element itself and the server validation is on the top of the page.

Sign in to reply to this post

natenorbie427772

Captcha not working now

So I had to add a captcha to the register form because of spam. All seemed well however I cannot get the captcha to except my entry. It just refreshes and want me to enter again, and again.

The register form is set up to send an email to the admin once filled out and go to a thank you page. This was functioning until I added the captcha. I assume it still work but the captcha wont validate. I looked over the forums for help but could find a working solution. I have attached my files. Register.php is the file.

You can also test online at www.bgainsurance.com/register.php to see it repeat itself.

Thank you for your help!

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the Session variable reference you are validating doesn't match the Captcha image setting. Try updating line 17 to:

$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Registration_group_5_Security_code_2"])?$_POST["Registration_group_5_Security_code_2"]:"")) . "",((isset($_SESSION["captcha_Registration_group_5_Security_code"]))?strtolower($_SESSION["captcha_Registration_group_5_Security_code"]):"") . "",true,12);

Sign in to reply to this post
loading

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