I'm having a strange issue with my HTML (or PHP) code on my web site. I'm pretty new to HTML and PHP (I'm more .NET).
On all forms on my website, the forms fail to submit in IE or Firefox. However, they work absolutely fine in Chrome (all platforms) and Safari (only tested on iPad/iPhone).
I could post the code if required, however, the issue is on my live website. Here are the forms which are immediately accessible via the homepage which have the same issue.
https://trentdiscos.co.uk/contact.php
https://trentdiscos.co.uk/login.php
All you have to do is click the submit button without entering any data. You should get an error message when the form is submitted which is returned using some simple PHP code.
If the full PHP code helps then I'm happy to post it. However, it appears to be a posting issue to me.
I can also replicate this issue on a local Apache web server.
Can anyone help please?
Theoretically, this should be fine as per the HTML Spec. Type image should act as a submit button.
In the below line:
<input name="submit" id="submit" value="Submit" src="submit.png" alt="Submit" type="image">
If you change type="image"
to:
type="submit"
It shows the error as you wanted. However, I can't say for certain what the problem is without seeing the whole of the code.