hi! can someone could give me a hand how to make a infomation.php with javascript, it include input name, address, age, gender and religion and the attach and reset command.

thank you in advance.


caren (^_~)>

<script language=javascript type="text/javascript">
function blah(e){
if(e.name.value=='')
{
alert('name is required boss!');
e.name.focus();
return false;
}
}
</script>
<form name=regform action="" method=post onSubmit="return blah(this)">
<input type=text name="name" />
<input type=text name="address" />
<input type=text name="age" />
<select name="gender">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<select name="religion">
<option value="Islam">Islam</option>
<option value="Cristian">Cristian</option>
</select>
<input type=submit value="Send" />
<input type=reset value="Cancel" />
<input type=hidden name=action value=send /> 
</form>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.