Hello Admin,
I want to know how I can be able to redirect users to a thank you page after a successful registration instead of a confirmation email.
Thank you in anticipation.
Redirect after registration in script register users
-
- Posts:5
Redirect after registration in script register users
Admin
Posts:805
Hello
1. In the "config.php" file set the value of the RANK constant to 1 (line 47):
2. In the "class.UsersReg.php" file, replace this code (line 31, in the addUser() function):
- with this:
3. In the "functions.js" file, replace this code (line 76, in the ajaxSend() function):
With this:
- The redirect will be made in JS to the "/path/thank_you_page" page; when the php response contains the "ok-redirect" string.
1. In the "config.php" file set the value of the RANK constant to 1 (line 47):
Code: Select all
define('RANK', 1);
Code: Select all
$msg = sprintf($this->lsite['register']['regmsg'], $username);
Code: Select all
$msg ='ok-redirect';
Code: Select all
else if(reID == adboxshow) $('#'+reID).html(clsadbox+response);
Code: Select all
else if(reID == adboxshow){
if(response.indexOf('ok-redirect') !=-1) window.location ='/path/thank_you_page';
else $('#'+reID).html(clsadbox+response);
}
maquis
Posts:5
Thank you very much sir. I have other questions that I will post soon, hope you will have the time to answer.
Similar Topics
- Redirect according to browser type
JavaScript - jQuery - Ajax First post
Pleasant Coursesweb,Last post
I have two `simple` javascript what I wanna combine between detecting in two different browsers to script to another page....
Marplo thanks for quick feedback took me more hours, I should have come earlier with asking questions.
It is a waste I`m not have experiance with...