Below is my code, what I have done is create a form which sends via asp, it works fine within IE but when testing it in Firefox the entire form is outside the page. Hope you can help!
Adam Huxtable
HTML FILE
[html]
<!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=utf-8" />
<title>Brian De Palma - Favourite Actor</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function checkall(frmEnquiry)
{
if (frmEnquiry.txtName.value == "")
{
alert ("You must enter a name");
return (false);
}
if (frmEnquiry.txtEmail.value == "")
{
alert ("You must enter a email address");
return (false);
}
if (frmEnquiry.TextNumber.value == "")
{
alert ("You must enter a phone number");
return (false);
}
if(isNan(frmEnquiry.TextNumber.value) || (frmEnquiry.TextNumber.value==""))
{
alert("enter a valid phone number");
return (false);
}
}
</script>
</head>
<body>
<div id="wrapper">
<div id="header"><img src="banner1.jpg" alt="Brian De Palma.com" width="720" height="100" /></div>
<div id="nav">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="index.html">Home</a> </li>
<li><a href="profile.html" class="MenuBarItemSubmenu">Profile</a>
<ul>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="info.html">Other Info</a></li>
</ul>
</li>
<li><a href="hmovies.html" class="MenuBarItemSubmenu">Movie History</a>
<ul>
<li><a href="htrailers.html">Trailers</a></li>
</ul>
</li>
<li><a href="umovies.html" class="MenuBarItemSubmenu">Upcoming Movies</a>
<ul>
<li><a href="utrailers.html">Trailers</a></li>
</ul>
</li>
<li><a href="opinion.html" class="MenuBarItemSubmenu">You're Opinion</a>
<ul>
<li><a href="favmov.html">Favourite Movie</a></li>
<li><a href="favact.html">Favourite Actor</a></li>
</ul>
</li>
</ul>
</div>
<div id="content">
<form method="post" action="sendDetails.asp" onsubmit="return checkall(this);" action="senddetails.asp">
<input type="hidden" name="receiver3" value="adam87@live.co.uk" />
<table width="500px" cellpadding="10px" align="center">
<tr>
<td colspan="2"><span class="style2">The Theatre Booking<br />
Comapny</span></td>
</tr>
<tr>
<td colspan="2"><p>Please send me more information about the following forthcoming play:<br />
<select name="plays">
<option value="Twelfth">Twelfth Night</option>
<option value="EndsWell">All's Well That Ends Well</option>
<option value="Othello">Othello</option>
</select>
</p>
</td>
</tr>
<tr>
<td width="193">Name:</td>
<td width="385"><input name="txtName" type="text" size="40" maxlength="30" /></td>
</tr>
<tr>
<td>Email Address:</td>
<td><input name="txtEmail" type="text" size="40" maxlength="30" /></td>
<tr>
<td>Telephone Number:</td>
<td><input name="TextNumber" type="text" size="40" maxlength="30" /></td>
</tr>
<tr>
<td colspan="2">How did you hear about us?<p>
<input type="radio" name="radioQuestion" value="1" />Website
<input type="radio" name="radioQuestion" value="2" />Magazine
<input type="radio" name="radioQuestion" value="3" />Newspaper
<input type="radio" name="radioQuestion" value="4" />Recommendation<br />
Other:<input type="text" name="other" size="40" maxlength="30" /></p>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Submit Enquiry" /></td>
</tr>
</table>
</form>
</div>
<div id="footer">
BrianDePalma.com <br />Copyrighted 2008
</div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>[/html]