How to send a form without refreshing the page?

后端 未结 4 1160
梦毁少年i
梦毁少年i 2021-01-16 15:04

I don\'t know PHP.

I don\'t want the user to go to http://www.example.com/feedback-thanks.html after sending the form. What I want is text below the sen

4条回答
  •  暖寄归人
    2021-01-16 15:18

    1. posibility - Use ajax in any form - jQuery, plain, etc ... see Google

    2. posibility - Create hidden iframe with name="sender" and use form target attribute ( I'm not sure if it is valid, but it works without javascript )

提交回复
热议问题