hey there peeps, ive been writing a form for a client, when the pgae loads none of the html shows, yet i can view source and its all there. Im sure its an obious mistake, but im blind to them. Please help, heres the code:
Thanks in advance
hemal
Code:
<%@ Language=VBScript %>
<% Option Explicit %>
<% Response.Buffer = True %>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
@import url("pcaid.css");
-->
</style>
<script language="JavaScript" type="text/JavaScript">
// Validate the problem type
function validproblemwith (problemwith) {
if (problemwith =="Make a Selection") {
return false
}
return true
}
// Validate the problem explaination
function validprobexp (probexp) {
if (probexp =="") {
return false
}
return true
}
// Validate OS if choice made
function validOschoice (os) {
if (os =="Other") && (oso =="") {
return false
}
return true
}
//Execute the valitation function
function submitform(check) {
if(!validproblemwith(check.problemwith.value)) {
alert("You Have Not Selected a Problem Type")
check.problemwith.focus()
check.problemwith.select()
return false
}
if(!validprobexp(check.probexp.value)) {
alert("You Have Not Explained Your Problem")
check.probexp.focus()
check.probexp.select()
return false
}
if(!validos(check.os.value)) {
alert("You Have Not Entered a Valid Operating System")
check.os.focus()
check.os.select()
return false
}
return true
}
</scrpit>
</head>
<body background="images/bk.gif">
<% 'declare variables
dim custnme , custadd1 , custadd2
dim custpc , custtel , custemail
'Obtain information from form and remove apostopies (replaced with doubles)
custnme=Replace(Request.Form("custnme"),"'","''")
custadd1=Replace(Request.Form("custadd1"),"'","''")
custadd2=Replace(Request.Form("custadd2"),"'","''")
custpc=Replace(Request.Form("custpc"),"'","''")
custtel=Replace(Request.Form("custtel"),"'","''")
custemail=Replace(Request.Form("custemail"),"'","''")
%>
<table border="0">
<tr>
<td height="10" width="10"></td>
<td height="10" width="660"><center><img src="images/PCAID-Logo(PC)Ver82.gif" height="10"/></center></td>
<td height="10" width="40"></td>
</tr>
<tr>
<td height="480" width="10"></td>
<td width="660" height="480" class="pcaid">
<h1 align="center">Contact Form - Part Two - Your Problem</h1>
<form onSubmit="return submitform(this)" method="post" action="mail.asp">
<input type="hidden" name="custnme" value="<%=custnme%>">
<input type="hidden" name="custadd1" value="<%=custadd1%>">
<input type="hidden" name="custadd2" value="<%=custadd1%>">
<input type="hidden" name="custpc" value="<%=custpc%>">
<input type="hidden" name="custtel" value="<%=custtel%>">
<input type="hidden" name="custemail" value="<%=custemail%>">
<table border="0">
<tr>
<td>Your Operating System</td>
<td><select name="os">
<option selected>Make a Selection</option>
<option>Windows 95</option>
<option>Windows 98</option>
<option>Windows ME</option>
<option>Windows XP</option>
<option>Windows NT</option>
<option>Windows 2000</option>
<option>Windows 2000 Server</option>
<option>Other</option>
</select>
</td>
</tr>
<tr>
<td>If Other OS Please Specify</td>
<td><input type="text" name="oso"></td>
</tr>
<tr>
<td>I am Having Problems With</td>
<td><select name="problemwith">
<option selected>Make a Selection</option>
<option>Hardware Repairs</option>
<option>Upgrades</option>
<option>Backups</option>
<option>Tutorials on Programmes</option>
<option>Settings and Configurations</option>
<option>Networks</option>
<option>Sales Advice</option>
<option>Other</option>
</select><font color="#FF0000" face="Arial, Helvetica, sans-serif">*</font>
</td>
</tr>
<tr>
<td>Please explain your problem</td>
<td><textarea rows="5" cols="50" name="probexp">Describe your problem here.</textarea><font color="#FF0000" face="Arial, Helvetica, sans-serif">*</font></td>
</tr>
<tr>
<td>Comments</td>
<td><textarea rows="2" cols="50" name="comments"></textarea></td>
</tr>
</table>
<input type="submit" value="Send to PC Aid Ltd">
<font color="#FF0000" size="-6" face="Arial, Helvetica, sans-serif">Fields with an marked with an asterisk (*) are compulsary</font>
</form>
</td>
<td height="480" width="40"></td>
</tr>
<tr>
<td height="10" width="10"></td>
<td height="10" width="660"><center><img src="images/PCAID-Logo(PC)Ver82.gif" height="10"/></center></td>
<td width="40" height="40"></td>
</tr>
</table>
</body>
</html>
Thanks in advance
hemal