I have some simple HTML :
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
What I wish to do is submit this form using JQuery and store what is entered in a database. The page, without refreshing would then update to show:
<p>Thanks for submitting $fname + $lname</p>
I would also like for a cookie to be created so that if the same user is to visit the site, it will always show this message rather than force them to see the input form multiple times.
What is the best way for me to do this? How can I do this using JQuery? Is there a better alternative? It is simple to do using PHP, but I would like it to be as interactive as possible and my example is just a very simple representation of what I will have :).