dare87 Posted February 4, 2010 Share Posted February 4, 2010 My stick forms are only working on textarea and not a text box. Please help me. <body> <div id="box"> <div id="header"> <div id="tlinks"> <?php include('includes/tlinks.php'); ?> </div> <?php include('includes/header.php'); ?> </div> <div id="main"> <div id="content"> <?php if (isset($_POST['submit'])) // The form has been submitted. { // Initialize the error array. $errors = array(); // Check for an zip. if (!empty($_REQUEST['category'])) $category = $_REQUEST['category']; else $errors[] = 'Please Select a Category'; // Check for a Date Title. if (!empty($_REQUEST['catother'])) $catother = $_REQUEST['catother']; // Check for a Date link. if (!empty($_REQUEST['name'])) $name = $_REQUEST['name']; // Check for an Address. if (!empty($_REQUEST['contactname'])) $contactname = $_REQUEST['contactname']; else $errors[] = 'Please the persons name that we can contact'; // Check for a City. if (!empty($_REQUEST['address'])) $address = $_REQUEST['address']; // Check for an state. if (!empty($_REQUEST['phone'])) $phone = $_REQUEST['phone']; else $errors[] = 'Please enter a phone number for your contact'; // Check for an zip. if (!empty($_REQUEST['phone2'])) $phone2 = $_REQUEST['phone2']; // Check for an zip. if (!empty($_REQUEST['title'])) $title = $_REQUEST['title']; // Check for an zip. if (!empty($_REQUEST['number'])) $number = $_REQUEST['number']; else $errors[] = 'Please how many people are involved.'; // Check for an zip. if (!empty($_REQUEST['music'])) $music = $_REQUEST['music']; // Check for an zip. if (!empty($_REQUEST['animals'])) $animals = $_REQUEST['animals']; // Check for an zip. if (!empty($_REQUEST['announce'])) $announce = $_REQUEST['announce']; // Check for an zip. if (!empty($_REQUEST['signed'])) $signed = $_REQUEST['signed']; else $errors[] = 'You must digitaly sign this document with your full name'; // If there are no errors, add the user to the database. if (empty($errors)) { // Connect to the databse. require_once ('../../ffdmysql_connect.php'); // Add the query. $query = "INSERT INTO parade SET category='$category', catother='$catother', name='$name', contactname='$contactname', address='$address', phone='$phone', phone2='$phone2', title='$title', number='$number', music='$music', animals='$animals', announce='$announce', signed='$signed', date_entered=NOW()"; // Run the query. $results = mysql_query($query); // If there are no errors. if ($results) echo '<b> - Thank you. You have been registered for the parade. Expect a phone call within a few days of this event.</b>'; else echo '<div class="error">An error occured. Please try again</div>'; } else foreach ($errors as $msg) echo '<div class="error" style="color:red;"> - ' . $msg . '</div><br><br>'; } ?> For Questions please us the <a href="contact.php">contact page</a>, or call Meggan (801) 870-0693 or Louise (801) 451-0953 @ Parks and Recreation www.farmington.utah.gov/specialevents<br><br> <form name="parade_reg" action="reg_parade.php" method="post"> <table align="center" width="100%" border="0" cellpadding="1" cellspacing="0"> <tr> <td class="title" colspan="2">Parade Registration Form</td> </tr> <tr> <td>Entery Category:<br> <select class="required" name="category"> <option value="" selected>Select One</option> <option value="Animal">Animal</option> <option value="Car">Car</option> <option value="Truck and Trailer">Truck and Trailer</option> <option value=Band"">Band</option> <option value="Float">Float</option> <option value="Other">Other</option> </select> <br><br> </td> </tr> <tr> <td>Please Specify Other:<br> <input type="text" name="catother" value"<?php echo $catother; ?>" size="20" maxlength="40"><br><br></td> </tr> <tr> <td>Group Name:<br> <input type="text" name="name" value"<?php echo $name; ?>" size="20" maxlength="40"><br><br></td> </tr> <tr> <td>Group Contact Name:<br> <input type="text" class="required" name="contactname" value"<?php echo $contactname; ?>" size="20" maxlength="40"><br><br></td> </tr> <tr> <td>Address:<br> <textarea name="address" rows="5" cols="50"><?php echo $address; ?></textarea><br><br></td> </tr> <tr> <td>Main Phone:<br> <input class="required" type="text" name="phone" value"<?php echo $phone; ?>" size="20" maxlength="15"><br><br></td> </tr> <tr> <td>Secondary Phone:<br> <input type="text" name="phone2" value"<?php echo $phone2; ?>" size="20" maxlength="15"><br><br></td> </tr> <tr> <td>Theme/Title:<br> <input type="text" name="title" value"<?php echo $title; ?>" size="20" maxlength="40"><br><br></td> </tr> <tr> <td>Number of Pertisapants:<br> <input class="required" type="text" name="number" value"<?php echo $number; ?>" size="20" maxlength="40"><br><br></td> </tr> <tr> <td>Will you have music, drums, etc.? Specify:<br> <textarea name="music" rows="5" cols="75"><?php echo $music; ?></textarea><br><br></td> </tr> <tr> <td>Will you have horses or other large animals? Specify:<br> <textarea name="animals" rows="5" cols="75"><?php echo $animals; ?></textarea><br><br></td> </tr> <tr> <td>How would you like the announcer to announce your entry?:<br> <textarea name="announce" rows="5" cols="75"><?php echo $announce; ?></textarea><br><br></td> </tr> <tr> <td>I digitaly sign and agree to and will follow (along with my group) all the<br> terms and conditions that Farmington City has set. (Type your First and Last Name)<br> <input class="required" type="text" name="signed" value"<?php echo $signed; ?>" size="20" maxlength="40"><br><br></td> </tr> <tr> <td><input type="submit" class="button" name="submit" value="Submit"><br><br></td> </tr> <tr> <td class="smallText">* Highlighted forms designate required fields.</td> </tr> <tr> <td class="smallText">**You will be notified a day or two prior to parade date for your entry position number<br> Parade participants shall <b>not</b> throw any item from the parade route into the crowd. This restriction was adopted to prevent persons, especially children from being injured by running in front of parade entrants. It is permissible to pass out items to spectators by having someone walk along the parade route next to the curb. Parade entrants understand that they are in the parade at their own risk and agree not to hold Farmington City responsible for accident or mishap.</td> </tr> </table> </form> </div> <div id="bottom"> <div id="blinks"> <?php include('includes/blinks.php'); ?> </div> <?php include('includes/bottom.php'); ?> </div> </div> </div> </body> You can see the working sample at nayliner.net/ffd/reg_parade.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.