|
|
|
Insure yourself from spam! The Anti Spam Insurance Company - ProtectWebForm!
Forum - code for form in PHP page
finlayd |
2010-04-26 10:21:59 |
|
I am working on upgrading a legacy-code form on a PHP page. I'm
converting the radio buttons to drop-down selectors and introducing
images to both the form pages (10 pages total)and the page it resides
in. When I fill in the first page of the survey/form and submit it, it
comes back saying "error on page" rather than going on to the next
survey/form page. My skill level is not high enough to figure out
what/where the problem is so I'm hoping someone will be able to help
me.
Here is the code for page one of the survey/form:
<?php
error_reporting(E_ALL);
?>
<? include('Global.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title><? print $title; ?></title>
<link href="style_rev.css" rel="stylesheet" type="text/css" />
<script src="script.js" type="text/javascript"></script>
</head>
<body bgcolor="transparent">
<p><img src="images/img4.jpg" alt="Your Farm header image" width="372"
height="121" /></p>
<h1>Your Farm</h1>
<form name="form1" id="form1" method="post"
action="survey2_rev.php">
<div>
<span class="Question">1. How many horses live on the Farm?</span>
<blockquote>
<div align="right">
<select name="survey.question.drop1" size="1"
id="survey.question.drop1">
<option>select best answer</option>
<option value="-3">1</option>
<option value="-2">2-5</option>
<option value="-2">6-10</option>
<option value="2">11-20</option>
<option value="3">21-50</option>
<option value="4">>50</option>
</select>
</div>
</blockquote>
</div>
<span class="Question"> 2. What best describes the farm?</span>
<blockquote>
<div align="right">
<select name="survey.question.drop2" size="1"
id="survey.question.drop2">
<option>select best answer</option>
<option value="3">Public barn with many different horse
owners</option>
<option value="-1">pRIVATE FARM</option>
<option value="-2">My own farm with only my horses</option>
<option value="3">Racing Stable</option>
</select>
</div>
</blockquote>
<div>
<span class="Question">3. What types of horses are on the
farm?</span>
<blockquote>
<div align="right">
<select name="survey.question.drop3" size="1"
id="survey.question.drop3">
<option>select best answer</option>
<option value="-2">Pleasure Horses</option>
<option value="2">Horses used for amateur
competition</option>
<option value="3">Horses used for professional
competition</option>
<option value="2">Broodmares</option>
<option value="-2">Retired Horses</option>
</select>
</div>
</blockquote>
</div>
<div>
<span class="Question">4. What best describes the situation on your
farm?</span>
<blockquote>
<div align="right">
<label>
<select name="survey.question.drop4" size="1"
id="survey.question.drop4">
<option>select best answer</option>
<option value="-1">HRRSES TURNED QUICKLY</option>
<option value="2">Horses are turned out in different
groups</option>
<option value="-1">Horses are not turned out</option>
</select>
</label>
</div>
</blockquote>
</div>
<div>
<span class="Question">5. What kind of flooring is in the
stalls?</span>
<blockquote>
<div align="right">
<label>
<select name="survey.question.drop5" size="1"
id="survey.question.drop5">
<option>select best answer</option>
<option value="2">Dirt or Gravel</option>
<option value="2">Mats over dirt or gravel</option>
<option value="-2">Concrete</option>
<option value="2">Removable mats over concrete</option>
<option value="-1">Permanent mats over concrete</option>
</select>
</label>
</div>
</blockquote>
</div>
<br />
<div id="range" align="center">
<p><input name="Next" type="button" class="QuestionSum" id="Next"
onclick="javascript:Validate();" value="Next Page"/>
<input name="Clear" type="reset" class="QuestionSum" id="Clear"
value="Clear Page" /></p>
</div>
<div align="center"><a href="../biosecurity_rev_calculator_1.php"
target="_parent"><input name="Button" type="button"
class="FAQ_Question" id="Reset" value="Restart
Calculator"/></a></div>
<script language="javascript" type="text/javascript">
parent.loadContent('3');
</script>
</form>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Transitional" height="31" width="88"
/></a>
</p>
</body>
</html>
Thanks, |
Post Reply:
You must be logged in to reply.
|
Post message
|
Registered users: 88191
Forms protected: 48551
Further Reading & Anti Spam Resources:
Directory
|
|