Jump to content

Required Input


Stephen_Allen

Recommended Posts

  • 2 weeks later...

with javascript

<html><head><title></title><script>function submitForm(){  if(document.myForm.testField.value.length < 1)	alert('testfield is required! Put something in it!');  else	documment.myForm.submit();}</script></head><body><form action="someotherpage.aspx" method="post" name="myForm"><input type="text" name="testfield"/><br/><input type="button" value="Submit" onclick="submitForm()"/></form></body></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...