duanmei2805 2015-08-10 11:52
浏览 24
已采纳

取消并以PHP返回

I have a formular, where you can edit a customers data. Below this there are 2 Buttons "Save" and "Cancel". Saving works fine, but if I click the cancel button, it should close the Formular and go back to the last page, which is the customer overview. How do I realize this?

  • 写回答

2条回答 默认 最新

  • douxiajia6104 2015-08-10 11:56
    关注

    You don't need PHP for that, just a bit of Javascript. Try this:
    <input action="action" type="button" value="Cancel" onclick="history.back();" />

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?