I thought it would be easier if i just posted the code for you to look at, in action >
linkage
things not working yet 1. focus (when page loads up - focus should be on the name field)
2. how to make the submit button check if a "destination" has been chosen - if so then submit to from otherwise alert an error?
-----------------------------------------------------------------------begin code
<html>
<head>
<title>Join Me</title>
<link rel=stylesheet type="text/css" href="jstyle.css">
<script type="text/javascript" language="Javascript">
function c(){
document.myform.name.focus();
}
function checkname(){
var inputName = document.myform.Name.value;
if (inputName == "")
{
alert("You must enter your name");
document.myform.Name.focus();
}
}
function checkemail(){
var inputEmail = document.myform.Email.value;
if (inputEmail == "")
{
alert("You must enter an e-mail address");
document.myform.Email.focus();
}
}
</script>
</head>
<body onload="c()">
<form name="myform" method="POST" action="confirm.php" >
<table class="jMain">
<tr>
<td class="jHead" colpspan="2" height="100">Join</td>
</tr>
<tr>
<td class="jText">Name</td>
<td class=><input type="text" name="Name" value="" size="20" class="box" onBlur="checkname()"></td>
</tr>
<tr>
<td class="jText">E-mail</td>
<td><input type="text" name="Email" value="" size="20" class="box" onBlur="checkemail()"></td>
</tr>
<tr>
<td class="jTextA">Location</td>
<td><textarea rows="5" cols="17" class="box"></textarea></td>
</tr>
<tr>
<td class="jText">Destination</td>
<td><select name="country" class="box">
<option name="" >
<option name=" Peru" >Peru
<option name=" Italy">Italy
<option name=" India">India
<option name=" Tibet">Tibet
</select></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="jText"> </td>
<td><input type="submit" value="Submit" class="box"></td>
</tr>
</table>
</form>
</body>
</html>