How can i stop someone from posting when this form is empty?
Here is my form:

<form name="message" action="" >
<center><input name="usermsg" type="text" id="usermsg" size="63" />
<input name="submitmsg" type="submit" id="submitmsg" value="Send" /></center>
</form>

Sanchixx

You will have to use jquery or php to verifiy each field if it's empty and return an error

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.