Here is my HTML page, I need help getting it to work with my PHP form:
<html>
<head>
<title>Bioness Facilities Request</title>
<style>
BODY{color:#000000; font-size: 8pt; font-family: Verdana}
.button {background-color: rgb(128,128,128); color:#ffffff; font-size: 8pt;}
.inputc {font-size: 8pt;}
.style3 {font-size: xx-small}
</style>
<meta name="Microsoft Theme" content="none, default">
</head>
<body bgcolor="#191919">
<form name="phpformmailer" action="contact_process.ph
p" align="center" method="post">
<div align="center"><center>
<table bgcolor="#F2F2F2" width="742" cellspacing="6" style="border-color: #CCCC99" border="1">
<tr>
<td width="210"> </td>
<td width="504"><font face="Arial"><b>Bioness Facilities Request</b></font></td>
</tr>
<tr>
<td align="right" width="210"><font face="Arial"><small>Your name:</small></font></td>
<td width="504"><font face="Arial"><input class="inputc" size="50" name="name">
</font></td>
</tr>
<tr>
<td align="right" width="210"><font face="Arial"><font color="#000080" size="1">*</font><small> Your email
address:</small></font></t
d>
<td align="left" width="504"><font face="Arial"><input class="inputc" size="50"
name="email"> <font size="1"> </font><font size="2">This will
be the reply-to emails address</font></font></td>
</tr>
<tr>
<td align="right" width="210"><font face="Arial"><font color="#000080" size="1">*</font><small>
Short Description of problem:</small></font></t
d>
<td width="504"><font face="Arial">
<input class="inputc" size="90" name="thesubject">
</font></td>
</tr>
<tr>
<td align="right" width="210" height="31"><font face="Arial" size="2">
Phone Number</font></td>
<td width="504" height="31"><font face="Arial">
<input class="inputc" size="30" name="thephone">
</font></td>
</tr>
<tr>
<td align="right" width="210"><font face="Arial"><font color="#000080" size="1">*</font><small>
Location of issue:</small></font></td>
<td width="504"><font face="Arial">
<input class="inputc" size="62" name="thelocation">
</font></td>
</tr>
<tr>
<td align="right" width="210"><font face="Arial"><font color="#000080" size="1">*</font><small>
Date Needed By:</small></font></td>
<td width="504"><font face="Arial">
<input class="inputc" size="35" name="thedateneeded">
</font></td>
</tr>
<tr>
<td align="right" width="210"><font face="Arial"><font color="#000080" size="1">*</font><small>
Department to be billed:</small></font></td
>
<td width="504"><font face="Arial">
<input class="inputc" size="35" name="thedepartment">
</font></td>
</tr>
<tr>
<td align="right" width="210" height="141"><font face="Arial">
</font>
<p><font face="Arial"><font color="#000080" size="1">*</font><small>
Description of work needed:</small></font></td
>
<td width="504" height="141"><font face="Arial"><textarea style="FONT-SIZE: 10pt" name="themessage" rows="7" cols="60"></textarea></fon
t></td>
</tr>
<tr>
<td width="210"></td>
<td width="504"><p>
<font face="Arial">
<input type="button" class="button"
value="Send" name="B1" ONCLICK="javascript:valida
teForm()">
</font>
<small> <small><font face="Arial">You must fill in
the fields marked with a *</font></p>
</td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</center></div>
</form>
<font face="Arial">
<script language="JavaScript"><!--
function validateForm()
{
var okSoFar=true
with (document.phpformmailer)
{
var foundAt = email.value.indexOf("@",0)
if (foundAt < 1 && okSoFar)
{
okSoFar = false
alert ("Please enter a valid email address.")
email.focus()
}
var e1 = email.value
var e2 = email2.value
if (!(e1==e2) && okSoFar)
{
okSoFar = false
alert ("Email addresses you entered do not match. Please re-enter.")
email.focus()
}
if (thesubject.value=="" && okSoFar)
{
okSoFar=false
alert("Please enter the subject.")
thesubject.focus()
}
if (themessage.value=="" && okSoFar)
{
okSoFar=false
alert("Please enter the details for your enquiry.")
themessage.focus()
}
if (okSoFar==true) submit();
}
}
// --></script>
</font>
</body>
</html>
See this question for details:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_23776257.html?cid=239#a22610107Start Free Trial