16c02-2.php

来自「介绍PHP5的给类型函数应用」· PHP 代码 · 共 21 行

PHP
21
字号
<?php// This is the verification script// We need to check if we got the appropriate fieldsif (isset($_GET['e']) && isset($_GET['h'])) {    // Attempt to create an identical hash using the same magic string    $hashed = md5('magic_string' . $_GET['e']);    // If the new hash equals what was passed in    if ($hashed == $_GET['h']) {        // They have passed muster.  Let them know this.  In a real         //  application you would need to save this fact and continue in        //  the process at this point.        echo "<p>Your email has been validated.<p>\n";    } else {        // It didn't pass.        echo "<p>Your email failed it's validation test.<p>\n";    }} else {    echo "<p>Invalid page access!<p>\n";}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?