数据发送时没有按下我的表单中的按钮[重复]

This question already has an answer here:

Hello I made a form in php with db in mysql and when I use it works but when I reload the page send the data I send previously and the records are duplicated please can you help me?

some images: that's how the form looks

this is the code: code

</div>

Send 303 code on the same page to the client after first submit, client won't be able to submit it again with "reload" button.

header("Location: $url", true, 303); die; # where $url is your page