Adil
DevBest CEO
- May 28, 2011
- 1,278
- 716
Probably gonna sound nooby, but here goes >.<
What I need to do is validate a form, without a form action leading to another page. I've done this with JQuery, but I need stronger server-side validation as well. Any ideas?
Here's my form, help is appreciated!
~Adil
What I need to do is validate a form, without a form action leading to another page. I've done this with JQuery, but I need stronger server-side validation as well. Any ideas?
HTML:
<form id="regform" action="" method="post">
<label for="username">Username:</label><br/>
<input type="text" name="username" id="username" class="required"/><br/>
<label for="password">Password:</label><br/>
<input type="password" id="password" class="required"/><br/>
<label for="email">Email:</label><br/>
<input type="email" id="email" ></input><br/>
<br/>
<input type="submit" value="Submit" class="regsub" onclick="validate();"/><input type="reset" value="Reset" class="regres"></input>
</form>
~Adil