View Full Version : Triggering UE to return to sending page
Martin
03-19-2009, 07:58 AM
Greetings,
I know I posted this question in the old archive, but through my search query I was unable to find the answer in the archives.
What I want to do is trigger UE to return to the same page when the form has been successfully sent and then display a hidden message (something like "form successfully sent").
How do I accomplish this with UE?
Thanks,
Martin
Ray Borduin
03-19-2009, 08:29 AM
Do you have securityAssist? You can add a url parameter to the redirect setting in universal email and then key off that url parameter to display the message. SecurityAssist would help you do it, or you could write a simple IF statement by hand on the page.
Martin
03-19-2009, 09:37 AM
Hi Ray,
Do you have an example of how you would write this if statement?
As I mentioned above I had a reply a long time ago in the archives with the code (that I cannot now access), and of course I did not copy it out.
Thanks,
Martin
Ray Borduin
03-19-2009, 09:58 AM
<?php
if (isset($_GET['addedparam'])) {
?>
Show this text only if the addedparam is in the link
<?php
}
?>
Martin
03-19-2009, 09:58 AM
I forgot to mention that no, I do not have Security Assist. Is this easier to do with Security Assist?
Ray Borduin
03-19-2009, 10:15 AM
With securityassist you can set up rules... and a rule can be something like a specific parameter in a link or a specific session variable has a specific value or set of values... then you can use these rules to hide and show anything on a page.
So it allows you to do things like this very easily through server behaviors instead of hand coding. Easier is in the eye of the beholder, but it means you don't have to write hand code.
Martin
03-19-2009, 10:17 AM
Thanks for the reply about Security Assist. Gotta factor that into my future budget! But it sounds like a must as I hate hand coding...
Ray back in the archives I had gotten a specific hand coding example from someone before but I cannot find it. Do you have a hand code example? I would really appreciate it!
Thanks,
Martin
Ray Borduin
03-19-2009, 10:27 AM
I gave you one three posts back in this thread...
Martin
03-19-2009, 10:41 AM
Thanks! =)
Martin
03-19-2009, 10:59 AM
You can tell I am not a hand coder...
So I understand this code goes in the area of the page where I want to show the message. Got it.
However, I am currently using POST with Univeral E-Mail, so do I then have to change the form method to GET? Can this work with POST?
<?php
if (isset($_GET['addedparam'])) {
?>
Show this text only if the addedparam is in the link
<?php
}
?>
Now in regards to the addedparam, is this something that i would name like success? Would I add that to the URL parameter in UE with the ?success ??
Thanks again!
Martin
03-19-2009, 11:00 AM
That worked! Thanks again Ray!
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.