
Originally Posted by
DyDr
I've got to ask why are you doing this task? If it's for leaning, you need to start off with small projects that you can write, test, and debug yourself. If it's for a real project, you need to have a lot more programming and debugging experience before you can do this.
The URL that the jquery .post() method submits to has now been changed to just "'php" in your code. It previously was "php/contacts-process.php". This results in a 403 forbidden error for that part of the javascript code since that's just the name of a folder and you cannot make a request to it without a default document set up. Since this request isn't valid, there is no expected response for the javascript code to use.
Your code is also using a jquery form plugin to submit the form data in this line - var $form = jQuery(form).ajaxSubmit();. This is the line that's actually submitting the form data to the email.php code, but there's no code associated with this to handle the response.
You need to pick just one set of javascrpt code to implement this with.
Bookmarks