PDA

View Full Version : adding confirmation message to an update page


mora398588
05-20-2010, 10:18 PM
In my users_Profile page, I would like to add a rule to securityassist that will allow me include a show region verifying that the page has been updated (when the user clicks the update button).

At this time, when a user updates their profile, the page just flickers and there is no notification that their profile has been updated. Could you assist me in the development of a new rule and creation of a new show region.

Thank you!

Eric Mittman
05-21-2010, 10:14 AM
I'm not sure that using a Security Assist rule to confirm the update is the best way to go about this. I think it might be easier to add in a message to the screen to inform the user of the update.

To start with in your update server behavior you need to make sure the update is going back to this same page but you should add in a url parameter to let you know that the page has been updated, like this:

redirect page: yourpage.php?updated=1

Once you have the redirect setup like this then you can add your message to the page that you would like the user to see only when the update occurs. Once you have added it to the page you can wrap a php if statement around it like this:


<?php if(issset($_GET['updated']) && $_GET['updated'] == 1){ ?>
your confirmation message goes here
<?php } ?>