Wrox Programmer Forums
|
BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9
This is the forum to discuss the Wrox book PHP and MySQL: Create-Modify-Reuse by Timothy Boronczyk, Martin E. Psinas; ISBN: 9780470192429
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2010, 08:44 PM
Registered User
 
Join Date: Sep 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 1: send confirmation message

i have modified my register.php file as recommended on page 18, by inserting the block of code in the book into the file at the correct position. However, when i register as a new user, i just get a blank page of html when i submit the form.

Should i create a separate file for the email block of code, save it in the /lib directory and add it as an include in register.php? Any ideas on where i might be going wrong?
 
Old October 21st, 2010, 06:35 PM
Authorized User
 
Join Date: Jul 2009
Posts: 77
Thanks: 4
Thanked 6 Times in 6 Posts
Default

Hi Andrew,

I am also using the code to email a validation link.
I inserted the code into register.php.
It is working for me.

On page 15 of the book, I inserted the
code after line 11,
PHP Code:
$token $user->setInactive(); 
and before these lines which start on line 18

PHP Code:
       }
    }
    
// there was invalid data
    
else
    { 
Upon success, it should go to public_files/register.php
and produce a page that looks something like this.

Thank you for registering.

You will be receiving an email shortly with instructions on activating your account.

Copyright ©2010
 
Old October 21st, 2010, 06:44 PM
Registered User
 
Join Date: Sep 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default ch.1 email link

Kenj, thank you for your response. I will try it out and report back.
 
Old October 22nd, 2010, 01:41 PM
Registered User
 
Join Date: Sep 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default ch.1 email link

Kenj, thank you. I managed to solve the message confirmation problem. Your input was useful because i was able to eliminate a coding error before looking elsewhere. I had no mail transfer agent installed so i installed postfix on the linux 10.04 server i am using and i also had to open port 25 on the firewall. the register.php file is now working perfectly.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send a auto confirmation mail?? silu95421 Classic ASP Databases 0 October 27th, 2007 04:46 AM
webshop email confirmation message Nick23 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 September 14th, 2007 03:43 PM
how to show a confirmation message? noor ASP.NET 1.0 and 1.1 Basics 10 May 16th, 2005 03:12 AM
Confirmation message on delete of Data grid item [email protected] VS.NET 2002/2003 1 December 22nd, 2004 02:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.