douou8954 2016-10-15 09:01
浏览 81

HTML表单不会在IE或Firefox中提交

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?

  • 写回答

1条回答 默认 最新

  • douzhongjian0752 2016-10-15 09:11
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示