the following is the code for adding a new fund wher min_holdings and nav are int values wheres all other are varchar and text fields.. While entering those fields i wanna make sure that correct formats are entered by user like int in int and not char or string in int.. if so an alert box should come .. how to do that???!!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form method="post" action="AddMF">
<center>
<table>
<tr>
<td>Fund Code</td><td><input type="text" name="mf_code"></td>
</tr>
<tr>
<td>Name</td><td><input type="text" name="mf_name"></td>
</tr>
<tr>
<td>Fund Type</td><td><input type="text" name="mf_type"></td>
</tr>
<tr>
<td>Current NAV</td><td><input type="text" name="nav"></td>
</tr>
<tr>
<td>Minimum Holdings</td><td><input type="text" name="mf_min_holdings"></td>
</tr>
<tr>
<td>Description</td><td><input type="text" name="mf_description"></td>
</tr>
<tr>
<td>Termd and Conditions</td><td> <input type="text" name="mf_TandC"></td>
</tr>
</table>
<br>
<input type="submit" value="submit">
</center>
</form>
</body>
</html>