close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect to different page

Thread began 3/24/2010 12:11 pm by webmaster403691 | Last modified 4/06/2010 5:30 pm by Dani Chankhour | 1016 views | 6 replies |

webmaster403691

Redirect to different page

Our registration page users_Registration.php after being filled out goes to users_LogIn.php?accesscheck=%2Fregistration%2Fusers_Profile.php

How do I get it to go to users_ThankYou.php first? In looking at the code:

<?php
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["UserEmail"]))?$_POST["UserEmail"]:"") ."";include("WA_Universal_Email/WAUE_users_Registration_1.php");

//Send Mail All Entries
if ("users_ThankYou.php"!="") {
header("Location: users_ThankYou.php");
}
}
?>

It appears this should happen. Why does it do this... The user has no way of knowing there has been a confirmation email sent to them.

On another note, the emails that are sent from the system do not have the confirmation link as clickable users_Confirm.php?ID=whatever

Why is this?

Thanks, Dino

Sign in to reply to this post

Dani Chankhour

By default the redirect should go to the thank you page as you saw in the code.

To test this please add this line of code to the top of the page of the thank you page:

<?php die('thankyoupage'); ?>

I'm guessing that on the thank you page you have a access page rule and it is redirecting you to the login page.

Please let me know if you are getting the 'thankyoupage' output after registering.

Sign in to reply to this post

webmaster403691

Redirect to different page

yes, I now am directed to the proper thank you page. I only see "thankyoupage" in the browser.

Dino

Sign in to reply to this post

webmaster403691

Redirect to different page

Follow up:

This is the only code on the thank you page:

<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Email Confirmed")){
WA_Auth_RestrictAccess("users_Profile.php");
}
?>

Sign in to reply to this post

Dani Chankhour

If you want the user to go the thank you page, just remove the lines of code you have posted in the previous post.

Those lines of codes checks if the user have the email confirmed yet, but since the user just register then he probably has not confirmed his email. You can also change it to:

<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
if (!WA_Auth_RulePasses("Logged in to users")){
WA_Auth_RestrictAccess("users_LogIn.php");
}

Sign in to reply to this post

webmaster403691

Hi Dani,

Code and suggestion you provided worked great.

1 little issue has me stumped. User registers, gets email confirmation link and is successful, goes to log in page users_LogIn.php

Upon submitting their u and p, the page that comes up showing an error, and the url is wrong users_LogIn.php?

You'll notice the folder registration//registration/ twice. Why is it putting the folder in 2 times? All other paths work... strange, my global settings are as follows:

<?php
$WAGLOBAL_Root_URL = "http://www.guestmoments.com/registration/" ;
$WAGLOBAL_Captcha_Width = "200" ;
$WAGLOBAL_Captcha_Height = "40" ;
$WAGLOBAL_Captcha_Characters = "5" ;
$WAGLOBAL_Captcha_Font = "Fonts/MOM_T___.TTF" ;
$WAGLOBAL_Captcha_BG = "ffffff" ;
$WAGLOBAL_Captcha_Noise = "437b9f" ;
$WAGLOBAL_Captcha_Text = "000000" ;
$WAGLOBAL_Captcha_BG_transparent = "0" ;
$WAGLOBAL_Email_Server = "mail.guestmoments.com " ;
$WAGLOBAL_Verification_Email_Subject = "Guest Moments Partner Program Email Verification" ;
$WAGLOBAL_Verification_Email_FROM = "partners@guestmoments.com" ;
$WAGLOBAL_Verification_Email_CC = "" ;
$WAGLOBAL_Verification_Email_BCC = "" ;
$WAGLOBAL_Registration_Email_Subject = "Welcome to the Guest Moments Partner Program" ;
$WAGLOBAL_Registration_Email_FROM = "partners@guestmoments.com" ;
$WAGLOBAL_Registration_Email_CC = "" ;
$WAGLOBAL_Registration_Email_BCC = "" ;
$WAGLOBAL_Password_Email_Subject = "Your Guest Moments Partner Program Password" ;
$WAGLOBAL_Password_Email_FROM = "partners@guestmoments.com" ;
$WAGLOBAL_Password_Email_CC = "" ;
$WAGLOBAL_Password_Email_BCC = "" ;
$WAGLOBAL_Admin_UserName = "xxxxxx" ;
$WAGLOBAL_Admin_Password = "xxxxxx" ;
?>

Thanks for all your assistance!

Dino

Sign in to reply to this post

Dani Chankhour

Your global settings look correct. I just did a test on your log in page and i was not able to see the issue. The url I'm seeing when log in fails is:

users_LogIn.php?failed=1


Does it only happen when the log in fails?

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