Why will my form only submit when the value has a space between the quotes? ex. This will submit: <input type="submit" name="Submit" value=" " /> This will not: <input type="submit" name="Submit" value="" /> I am not using a standard submit button, the submit button is a png image that is defined in the CSS. Is it ok to leave the value with a space between? It is working fine, but it just seems weird.
Because "value" is the text that would appear on the button like "Send Now, or Join Now, or Submit, or Create Now, etc). If you use the value element, it can not be null.
I'd suggest that you remove the submit button .png image from your CSS file and use: <input type="image" src="button_image.png" width="xx" height="yy" /> Code (markup): which will automatically submit the form when the user clicks on it.