I’m trying to make an AJAX contact form for my first time, and right now – it’s very simple. I don’t have it doing anything right now, except for when someone submits something – it checks to see if they entered a name, and if they didn’t, it tells them to – that’s it.
Here’s the code for the form:
And here’s the code for the PHP file, called send-form.php:
Ajax is on the left hand side on the menu for tutorials.
I did what you want in only a minute with jquery, and notice how much shorter and forward it is. Easier to learn if you ask me.
I know this isn’t exactly what you asked for, and if you want I will take a look at what you had and see if I can find your problem. Just note that if you use my example, you will need to have the jquery library and change the src to where it is on your server and also change the send form to receive a post instead of a get.
Best of luck,
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".