Jump to content
Larry Ullman's Book Forums

Knish72

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Knish72

  • Rank
    Newbie
  1. Thanks guys but before moving forward I'd like to know why I am getting a parse error on the 60+ else conditional line: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Form Feedback</title> <meta name="generator" content="TextMate http://macromates.com/"> <meta name="author" content="Michael Wiss"> <!-- Date: 2013-03-14 --> <style type="text/css" title="text/css" media="a
  2. Hello! I'm attempting to rewrite handle_form.php to validate the age element //validate age: if (isset($_REQUEST['age'])) { $age = $_REQUEST['age']; if ($age == '0-29') { echo '<p><b>You are 0-29!</b></p>'; }elseif ($age == '30-60') { echo '<p><b>You are 30-60!</b></p>'; }else($age == '60+'){ echo '<p><b>You are 60+!</b></p>'; } That's what I have so far. Thanks very much, it's a great book so far!
×
×
  • Create New...