I want to create a contact or information form that submits information whilst staying on the current page.
I am using a contact form on my website http://www.purpaldzinz.net/. It is basically for contacting us for our various services like SEO, social media, website designing.
Once you fill in and submit it, it leads you to a separate page using PHP.
I want a form that also submits the information but remains on the same page i.e. my home page whilst also displays confirmation messages like, your message or information has been submitted
etc.
2
Answers
Check out this link it may be helpful for you: https://www.formget.com/submit-form-using-ajax-php-and-jquery/
You can also find helpful details from this url : Submitting HTML form using Jquery AJAX
So you want a contact form, displaying a message telling you it has been submitted, without it refreshing?
Using HTML, PHP and just a tiny bit of jQuery, this should do it: