Thông tin tài liệu
[...]... verify .php script referenced in the HTML code is responsible for taking in a user ID and activation token, checking the corresponding values in the database, and then activating the user ’s account It must be saved in the publically accessible directory as well < ?php // include shared code include ‘ /lib/common .php ; include ‘ /lib/db .php ; include ‘ /lib/functions .php ; include ‘ /lib/User .php ; // make... id=”captcha /> < ?php $form = ob_get_clean(); // show the form if this is the first time the page is viewed if (!isset($_POST[‘submitted’])) { $GLOBALS[‘TEMPLATE’][‘content’] = $form; } // otherwise process incoming data else { // validate password... JavaScript and image files referenced in the HTML do need to be publically accessible) since I don’t want a visitor or search engine to stumble upon a slew of content-less pages For now, here’s a basic template that’s suitable for the needs of this project: Email Address /> Verify Enter text seen in this image ” alt=” /> /> Password (continued) 13 c01.indd 13 3/2 9/0 8 10:31:39 AM Chapter 1: User Registration (continued) Password Again ”> Username . AM 3/2 9/0 8 11:30:13 AM PHP and MySQL Create-Modify-Reuse Tim Boronczyk with Martin E. Psinas Wiley Publishing, Inc. ffirs.indd iiiffirs.indd iii 3/2 9/0 8 11:30:13 AM 3/2 9/0 8 11:30:13 AM PHP and. and Wrox books. To read the FAQs, click the FAQ link on any P2P page. flast.indd xvflast.indd xv 3/2 9/0 8 11:30:53 AM 3/2 9/0 8 11:30:53 AM flast.indd xviflast.indd xvi 3/2 9/0 8 11:30:54 AM 3/2 9/0 8. News/Blog System 265 Chapter 11: Shell Scripts 291 Chapter 12: Security and Logging 315 Index 333 ffirs.indd iffirs.indd i 3/2 9/0 8 11:30:12 AM 3/2 9/0 8 11:30:12 AM ffirs.indd iiffirs.indd ii 3/2 9/0 8
Ngày đăng: 13/07/2014, 18:20
Xem thêm: PHP and MySQL / Create-Modify-Reuse pot, PHP and MySQL / Create-Modify-Reuse pot