POST/Redirect throws a `Connection was reset` browser error

前端 未结 2 1694
鱼传尺愫
鱼传尺愫 2020-12-11 19:50

I\'m building a one-page checkout for a customer of ours. This checkout is supposed to contain all forms for credentials, shipment and payment. Editing previously entered va

相关标签:
2条回答
  • 2020-12-11 20:29

    is action="/checkout/payment/" defined well?, i mean you could try abosolute url, i see a suspicious slash at the end /, also you define form methods with method="POST", on index.php you should retrieve all with $_POST[] dunno if this affect

    0 讨论(0)
  • 2020-12-11 20:51

    "Connection was reset"

    Can sometimes mean a php crash. Without seeing the exact files it's hard to guess if and why this is happening.

    Make sure to check the error_log, type: php --info | grep error to see what file it's being logged to (if you are on linux/unix).

    My guess is a stray break; statement somewhere see this answer for a possible cause: https://stackoverflow.com/a/20036720/988324

    You would find some trace of this in your error logs though. If you can provide this I might be able to help more.

    0 讨论(0)
提交回复
热议问题