Click here to Skip to main content
15,900,634 members

Comments by DeepthiTanguturi (Top 54 by date)

DeepthiTanguturi 2-May-12 2:57am View    
No,I am gettng error.By mistaken i pasete the code in solution
DeepthiTanguturi 2-May-12 2:43am View    
myself only
DeepthiTanguturi 2-May-12 2:34am View    
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Server side form validation with JQuery plugin and PHP</title>
<script src="jquery-1.4.2.js"></script>
<script src="jquery.validate.min.js"></script>
<script>
$(document).ready(function(){

$('#my-form').validate({
'rules':
});


});
</script>
</head>
<body>

Server side form validation with JQuery plugin and PHP



<br />

<form name="my-form" id="my-form" method="post" action="submit.php">
<table>
<tr>
<td>Your name:</td>
<td><input name="name" value="" size="30" maxlength="255" /></td>
</tr>
<tr>
<td>Your email:</td>
<td><input name="email" value="" size="30" maxlength="255" /></td>
</tr>
<tr>
<td>Your favourite color:</td>
<td>
<select name="fav_color">
<option value="">-select please-</option>
<option value="Black">Black</option>
<option value="White">White</option>
<option value="Blue">Blue</option>
<option value="Red">Red</option>
<option value="Yellow">Yellow</option>
</select>
</td>
</tr>
<tr>
<td>Your comment:</td>
<td><textarea name="comment" rows="6" cols="35"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Submit" /></td>
</tr>
</table>
</form>

</body>
</html>
DeepthiTanguturi 30-Apr-12 9:00am View    
I am expecting myaccount page but it is redirecting index page
DeepthiTanguturi 30-Apr-12 6:12am View    
How can i do