Jump to content
Larry Ullman's Book Forums

kbflowers

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kbflowers

  • Rank
    Newbie
  1. "Just assign the error message to a variable and print the variable where you want the error to appear." Therefore, I did input as below. This is "assign the error message to a variable" what I understand. $firsName =NULL; echo '<p class="error">You forget to enter your first name. Please go back and fill out the form again </p>' if you can, would you mind taking a look at below URL? http://127.0.0.1/ch02/phpPaycheck2.php The error message should be separated pages in php, but this error messages are the same page above the table.
  2. The error echo- $firsName =NULL; -does properly not work. Would you mind taking a look at below code? I would like to know what problem I run into. Thank you for spending time with me. <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Paycheck Calculator</title> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link rel="stylesheet" href="css/styles.css"/> </head> <body> <!-- PHPPaycheck2.html -->
  3. Hi, I am currently working on 127.0.0.1/ch02/PHPPaycheck2.html and127.0.0.1/ch02/phpPaycheck2.php. <!php if (!empty($_POST['firstName'])){ $firsName = $_POST['firsName']; }else{ $firsName =NULL; echo '<p class="error">You forget to enter your first name. Please go back and fill out the form again </p>' ?> An error message "You forget to enter your first name. Please go back and fill out the form again" displays next to <td colspan="2"> First Name</td> in the table of paycheck2.php. My question is how to make the error massage displaying a separate web
  4. Yes, I did provide email and comments values, but not displaying both. That is fine with me. More importantly, I am currently working on URL:127.0.0.1/ch02/PHPPaycheck2.html and127.0.0.1/ch02/phpPaycheck2.php. An error message "You forget to enter your first name. Please go back and fill out the form again" displays in the table of paycheck2.php. My question is how to make the error massage displaying a separate web page as shown your php textbook page 53-a. but, URL should be in 127.0.0.1/ch02/phpPaycheck2.php. That is an assignment due on this Sunday. Thank you for replying.
  5. Hi, My handle_form.php' result did properly not display after loading Form through a URL. Would you mind asking you how to display the result of handle_form. php as shown php textbook, page 43 -b? Below are my code, the result of URL, and a note by FirefoxTidyHTMLValidation. <body> <?php # Script 2.2 -handle_form.php // create a shorthand for the form data $name = $_REQUEST['name']; $email = $_REQUEST['email']; $comments = $_REQUEST['comments']; /*not used: $_REQUEST['age']; $_REQUEST['gender']; $_REQUEST['submit']; */ //Print the submityted information: echo "<p>Tha
  6. Hi I tried to display an error message out of "table," as your Form Feedback( php textbook p. 53-a). However, the error message viewed below "table" http://127.0.0.1/ch02/phpPaycheck2.php. If you offer me any suggestion, that will help me a lot. <table id= "employee"> <tr> <th colspan ="2">Paycheck Calculator</th> <th> </th> </tr> <tr class ="alt"> <td colspan="2"> First Name</td> <td class="money"> <?php ?> </td> </tr> <tr> <td colspan="2"> Last Name</td> <td class="
×
×
  • Create New...