close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Feedback when profile is updated & newlines in PW Email

Thread began 4/19/2011 5:13 pm by Dennis | Last modified 6/27/2011 8:54 pm by un33k9309513 | 2275 views | 6 replies |

Dennis

Feedback when profile is updated & newlines in PW Email

Hi,

Regarding the Profile page created with the WA SA Wizard. How could I include some kind of feedback when a person clicks update. Currently the page just reloads and the user is left to wonder if anything happened or if the update was successful. Possibly a message "Database successfully updated" in bold red posted at the top of the page after the page was updated.

Also, regarding the password request page EmailPW.php. The page functions properly, and I receive an Email with the proper information. However all the items are on one continuous line even though I added multiple newlines in the SA Email Password Server Behavior. I can see the multiple \n in the code.

Attached is the EmailPW file.

Thanks,
Dennis

Attached Files
member_EmailPW.zip
Sign in to reply to this post

Jason ByrnesWebAssist

On the profile page, double click the update record behavior in the server behaviors panel, set the redirect to go back to the profile page but include a querystring variable:
profile.php?update=true

then use the following code on your apge to show the updated message:

php:
<?php if(isset($_GET) && $_GET == "true"){ ?>

Your Profile Has benn updated
<?php ?>



for the returns in the email try using:
\r\n

if that doesnt work then use <br /> tags

Sign in to reply to this post

un33k9309513

Hi,

I'm trying to do this too, but not sure where exactly I need to put this stuff in my
newpassword.php page and user_profile.php page.


but include a querystring variable:
profile.php?update=true


<?php if(isset($_GET) && $_GET == "true"){ ?>
Your Profile Has benn updated
<?php } ?>


Thanks

To Dennis, I tried this for each new line and it worked too.

<p>&nbsp;</p>

Sign in to reply to this post

Dennis

Hi,

I'm way to much of a rookie to be giving php tips, but I also know how it feels, anxiously waiting to get the help needed so you can get your page working. So I will tell you what I did.

With your newpassword.php page open, look in the Server Behavior panel, and double click on the Update Record behavior. In the bottom of the Update Record window is "After updating, go to:".

Assuming you want your "success" message on the same page, you would place "newpassword.php?update=true" (without the quotes) in that "After updating, go to:" field.

Then in the code view window for the page, place this code (this is what I used, it differs slightly from Jasons tip)

php:
<?php if(isset($_GET['update']) && ($_GET['update']) == "true"){ ?> 

Your Profile has been updated
<?php ?>

where ever you want the success message displayed. I placed mine at the top of the page at the end of the first line of text after a few "&nbsp;". I also added a css style to make it stand out.

Dennis

Sign in to reply to this post

un33k9309513

Excellent, thanks. it worked. I'm in the same boat as you with php probably, I wish I majored in it :) I try to learn though.

But it's nice to have a community of people as well as support here to help each other out.

*One thing I'd like to note if someone is reading this and runs into a error 404 because the path is not fond correctly

I changed the default

change this:

Newpassword.php?update=true

to:

/folder/Newpassword.php?update=true

or if Newpassword.php is in the root directory as your index file keep:

Newpassword.php?update=true

just took me a few minutes to figure it out.

thanks for the quick reply Dennis

Ed

Sign in to reply to this post

Lon WintersBeta Tester

Just my 2 cents, I still prefer redirecting to a dedicated confirmation page with options of what to do next. Placing the message on the update page sort of just stops the flow there. Not that the user is too dumb to know they can just click a menu item, I still like to offer them some logical direction. The profile has been updated, the confirmation message shows it, but since they are done with the update page, why go back there?

If I were to use this message in place of a confirmation page, I would perhaps go back to the users main menu profile page, and display it there. Just a thought.

Sign in to reply to this post

un33k9309513

Good thought, I will redirect to profile with a update message there. Thanks

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