Jump to content
Larry Ullman's Book Forums

Ed Branson

  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Ed Branson

  • Rank
  1. Sorry, I should have posted the scripts .. they are short as follows: ********************************************************Login.php**************************************************** <?php # login.php - 9.11 // This page both displays and handles the login form. // Need the utilities file: require('includes/utilities.inc.php'); // Create a new form: //set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/local/pear/share/pear/'); set_include_path(get_include_path() . PATH_SEPARATOR .'/home/content/93/11035593/html/PEAR/'); require('HTML/QuickForm2.php'); $form = new HTML_
  2. The login.php script and add_page.php script, in Chapter 9, both begin by creating a new instance of quickform2 as $form. Then the script tests for "POST" in order to process the $form data ELSE display a blank $form for user input. How does the login.php script run twice without creating an empty $form object each time it runs? In other words, when a $form "submit" occurs; how does the $form object RETURN to the "if($_SERVER['REQUEST_METHOD] == 'POST" section of the login.php script, thereby, bypassing the beginning of the script. The beginning of the script would use the variable $for
  • Create New...