Oh boy, the whole page? That's a lot of code. I'd rather just put in the form and the head, if that's okay? There's a ton of completely irrelevant stuff on there.
Form:
Code:
<form action="consult_ty.php" method="post" name="form1" id="form1" onSubmit="return checkForm(this)">
<p>1. *insert question*?</p>
<p>
<label>
<input name="1" type="radio" id="1_0" onclick="MM_showHideLayers('1a','','hide')" value="Yes" />
Yes</label>
<br />
<label>
<input name="1" type="radio" id="1_1" onclick="MM_showHideLayers('1a','','show')" value="No" />
No</label>
<label></label>
<br />
</p>
<p>1a. If not, why not?</p>
<p>
<textarea name="1a" id="1a" cols="60" rows="5"></textarea>
</p>
<p>---</p>
<p>2. *insert question*? </p>
<p>
<label>
<input name="2" type="radio" id="2_0" onclick="MM_showHideLayers('2a','','hide')" value="Yes" />
Yes</label>
<br />
<label>
<input name="2" type="radio" id="2_1" onclick="MM_showHideLayers('2a','','show')" value="No" />
No</label>
<br />
</p>
<p>2a. If not, why not?</p>
<p>
<textarea name="2a" id="2a" cols="60" rows="5"></textarea>
</p>
<p>---</p>
<p>3. *insert question*? </p>
<p>
<label>
<input name="3" type="radio" id="3_0" onclick="MM_showHideLayers('3a','','hide')" value="Yes" />
Yes</label>
<br />
<label>
<input name="3" type="radio" id="3_1" onclick="MM_showHideLayers('3a','','show')" value="No" />
No</label>
<br />
<br />
</p>
<p>3a. If not, why not?</p>
<p>
<textarea name="3a" id="3a" cols="60" rows="5"></textarea>
</p>
<p>---</p>
<p>4. *insert question*?</p>
<p>
<label>
<input name="4" type="radio" id="4_0" onclick="MM_showHideLayers('4a','','hide')" value="Yes" />
Yes</label>
<br />
<label>
<input name="4" type="radio" id="4_1" onclick="MM_showHideLayers('4a','','show')" value="No" />
No</label>
<br />
</p>
<p>4a. If not, why not?</p>
<p>
<textarea name="4a" id="4a" cols="60" rows="5"></textarea>
</p>
<p>---</p>
<p>5. *insert question*? </p>
<p>
<label>
<input name="5" type="radio" id="5_0" onclick="MM_showHideLayers('5a','','hide')" value="Yes" />
Yes</label>
<br />
<label>
<input name="5" type="radio" id="5_1" onclick="MM_showHideLayers('5a','','show')" value="No" />
No</label>
<br />
</p>
<p>5a. If not, why not?</p>
<p>
<textarea name="5a" id="5a" cols="60" rows="5"></textarea>
</p>
<p><br />
</p>
<p>---</p>
<p>6. *insert question*
</p>
<p>
<label>
<input name="5d" type="radio" id="5d_0" onclick="MM_showHideLayers('5e','','hide')" value="Yes" />
Yes</label>
<br />
<label>
<input name="5d" type="radio" id="5d_1" onclick="MM_showHideLayers('5e','','show')" value="No" />
No</label>
</p>
<p>6a. If not, why not?</p>
<p>
<textarea name="5e" id="5e" cols="60" rows="5"></textarea>
<br />
</p>
<p>---</p>
<p>7. Please use this space for any other comments you want to make about our ******. </p>
<p>
<textarea name="6" id="6" cols="60" rows="5"></textarea>
</p>
<p>---</p>
<p>9. Are you:</p>
<p>
<label>
<input type="radio" name="8" value="Tenant" id="8_0" />
tenant</label>
<br />
<label>
<input type="radio" name="8" value="Applicant" id="8_1" />
applicant</label>
<br />
<label>
<input type="radio" name="8" value="Housing professional" id="8_2" />
a housing professional</label>
<br />
<label>
<input type="radio" name="8" value="Other" id="8_3" />
Other - please state </label>
<input type="text" name="9a" id="9a" />
<br />
</p>
<p>---</p>
<p>If you want to be entered into our £100 Prize Draw, please fill in your details below.</p>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td>Name:</td>
<td><input type="text" name="name" id="name" /></td>
</tr>
<tr>
<td>E-mail</td>
<td><input type="text" name="email" id="email" /></td>
</tr>
</table>
<p>
<input name="submit" type="submit" id="submit" value="Submit" />
</p>
</form>
Head:
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<meta name="Description" content="Page title." />
<meta name="Keywords" content="stuff in here" />
<title>Title of the page</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!--default stylesheet for screen viewing-->
<link href="css/style_consult.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<script language="JavaScript"
type="text/javascript">
function checkForm(e)
{
var radio=document.getElementsByTagName('input'),bool=false;
for(var i=0;i<radio.length;i++)
{if(radio[i].type=='radio'&&radio[i].checked==true) {
alert('Please choose yes or no for every question');bool=true}}
return bool;}
</script>
<!-- InstanceEndEditable -->
<!--javascript for the menu bar-->
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<!--stylesheet for the menu bar-->
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<!--javascript for menu bar rollovers-->
<script type="text/javascript" src="javascript/rollover_lrg.js"></script>
<!--stylesheet for printed pages-->
<link href="css/print.css" rel="stylesheet" type="text/css" media="print" />
<!-- stylesheet for small screen - PDA and phones-->
<link href="css/handheld.css" rel="stylesheet" type="text/css" media="handheld" />
<!--alternate stylesheet for larger text-->
<link href="css/style_bigtext.css" rel="alternate stylesheet" type="text/css" title="alternate" media="screen" />
<!--javascript for the text resize function-->
<script type="text/javascript" src="javascript/styleswitcher.js"></script>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
Bookmarks