Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About codybiggs

  • Rank
  1. Cool! This is my first experience with php, so obviously there is a lot to learn. I did have a question though when they leave a input blank I want another echo to show up that says "Weather Wizard, we need your name and your parent or guardian's name, email, phone and your membership status to send information about our workshops. Hit the back button on the browser and try again." Right now I have it set up on every input validation, so if they leave 2 inputs blank then the message shows up twice. Basically if one or more inputs are left blank I want the message to show up only once, not once for each input. Not looking for straight code..just a little bump in the right direction
  2. Y'all im sorry I'm a idiot! I was trying to view the form page in the browser like a normal HTML page instead of going through localhost. Which is why I never my echo when I submitted the form...thanks for trying to help though!!!
  3. So I have a form that wants inputs for a kids name, their parents name, email, phone number, and check lists for workshops they can take. I have finished the form...I still need to add the css but I wont to get the validation done first, but my echo wont work once the form is submitted, and there is no name for the kid. it should just go to the validation page and say "you forgot to enter your name" but it goes to the page without showing the echo even though the input is blank. Here is what I have <!DOCTYPE html> <html> <head> <title>Program 2</title> <link rel="stylesheet" type="text/css" href="BiggsCProgram1.css"> </head> <body> <h1>Weather Wizard Workshops</h1> <p>we host weather wizard workshops throughout the year for kids from 6-12</p> <P>Please note the following workshops are free to members:</p> <ul> <li>Make a rain gauge</li> <li>Make a Thermometer</li> </ul> <form action="checkform.php" method="post"> <fieldset> <legend>Register your interests</legend> <input type="checkbox" name="workshop">Make a rain gauge</input> <br> <input type="checkbox" name="workshop">Make a thermometer</input> <br> <input type="checkbox" name="workshop">Make a windsock</input> <br> <input type="checkbox" name="workshop">Make lightning in your mouth</input> <br> <input type="checkbox" name="workshop">Make a Hygrometer</input> <br><br> Your Name:<br> <input type="text" name="kids_name"> <br><br> Your parent or Guardian's name:<br> <input type="text" name="parent_name"> <br><br> Your parent or Guardian's E-mail:<br> <input type="email" name="email"> <br><br> Your parent or Guardian's Phone Number:<br> <input type="text" name="phone_number"> <br><br> Your Closest Center: <select> <option>Charleston</option> <option>Summerville</option> <option>Mt.Pleasant</option> </select> <br><br> Are you a member? <input type="radio" name="member"> No</input> <input type="radio" name="member"> Yes</input> <input type="radio" name="member"> Sign Me Up</input> <br><br> <input type="submit" value="Submit"> </fieldset> </form> </body> </html> <!DOCTYPE html> <html> <head> <title>Check Form</title> </head> <body> <h1>Weather Wizards Regitration Verification Form</h1> <?php if(!empty($_REQUEST['kids_name'])) { $kidsName = $_REQUEST['kids_name']; }else { $kidsName = NULL; echo 'You forgot to enter your name!'; ?>
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.