Recent content by sandycool9999

  1. S

    HOw do i validate radio buttons for PHP?

    I just have a simple form: <form name="Stumarks" action="lala.php" method="GET"> Semester: <br /> <input type="radio" name="semester" value="<?php echo [1]; ?>" />Fall<br /> <input type="radio" name="semester" value="<?php echo [2]; ?>" />Spring<br /> <input type="submit" value="submit"/>...
  2. S

    How do I validate drop down lists..PHP?

    <form name="Stumarks" action="report.php" method="GET">School: <select name="school" value="<?php echo $school; ?>" /></input><font color="red"><?php echo $schoolerror; ?></font></p> <option value="blank" >---Select a school---</option> <option value="Mother Teresa">Mother Teresa High...
  3. S

    Why isn't this code working?PHP?

    I have two documents. I"m just trying to validate one form. I want the error message to pop up but it's not. How do I do that for my code? Document 1 "test.php" <?php @$fname=$_GET["fname"]; @$fnameerror=$_GET["fnameerror"]; ?> <html> <h1>Entry Form </h1> </html> <?php if...
  4. S

    How do I validate my drop down menu? PHP?

    I have two documents and I want to validate the drop down menu so that there is one option selected and if they didn't select an option, then an error message appears beside the drop down menu. Document 1"crazy.php": <?php $school=$_GET["school"]; if (isset($school)) $error="*"; else...
  5. S

    How to make a for loop in a drop down list? PHP?

    <p><select name="Year"> <?php for ($i=2000; $i<=2012; $i++) echo "<option value=".i.">".$i."</option>"; ?> <select> I thought itwould be something like this...but idk!
Back
Top