View Full Version : Email
Jon Gibson
03-03-2009, 08:22 PM
Hello:
I am having a problem with the email and thank you page rendering.
My database is catching the user inputs (ie is recording the data), but:
1. the 'Thank You.php page does not load after (another form loads)
2. the email is never sent
Here is where you can access the registration form:
http://www.lrciviccouncil.com/UserRegistration100/users_Registration.php
Any help is greatly appreciated.
Jon
Ray Borduin
03-04-2009, 09:06 AM
Probably the referrer checking and your security settings.
You can probably update the line:
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
with the line:
if (isset($_POST["Register_x"]))
That should stop the referrer validation.
Jon Gibson
03-04-2009, 10:52 AM
Ray, thank you very much for your reply. I will test when I get home tonight and post what the results were.
Just to clarify what I will do:
DELETE:
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
with NO additional curly brace deletion, }?
ADD:
if (isset($_POST["Register_x"]))
with NO curly braces at all?
Thank you again!
Jon
Ray Borduin
03-04-2009, 11:09 AM
sorry, no add the curly bracket at the end
or just replace the contents of the IF statement even better.
Jon Gibson
03-04-2009, 08:26 PM
Ray, thank you so much! That worked great.
Now my Login and Forgot password pages won't work. They are doing the same thing as the user Registration was . . . posting to itself, only this time nothing happens.
1. I have confirmed the registration via e-mail
2. I looked for a similar line to the User_Registration page you told me about. I found in the user_Login.php that was very similar to the line you found for me earlier.
My question is: What Post value should I place there? "EmailPW_x", "Forgot_x"?
Any help is really appreciated.
Thanks again Ray.
Jon
Ray Borduin
03-05-2009, 07:58 AM
That is the name of the submit button, or the name of the submit image with "_x" added to the end. So look at the name of the button the user presses to initiate the action and update the code accordingly.
Jon Gibson
03-06-2009, 12:21 PM
Ray,
Many thanks for your direction, suggestions and support. Everything is working great.
Have a great weekend.
Jon
dan_m343359
03-29-2009, 11:25 PM
Problem:
I cannot get the email registration confirmation page to send out from my remote server - Hosted by Go Daddy. I have been working with WA's Eric, for 3 weeks trying to resolve this. His last comment was for me to change hosting - Doesn't anyone have one of your URP working at Go Daddy ?
The database receives the registration / log in, no problem - PHP MyAdmin locally / remote
I really need a fix on this. My client is getting very impatient........
Dan
Update - Monday afternoon
Received a call from WA Ray - Got it going - now working on Go Daddy - apparently there were some code issues.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.