Portal Home > Knowledgebase > Articles Database > AJAX/PHP form not submitting properly


AJAX/PHP form not submitting properly




Posted by Blurple, 02-18-2010, 01:27 PM
I have a form and I want it to show errors if all the fields except for the comments are not filled in, these should pop up without having the page refresh. Then once everything is ok and the user hits submit i want it to bring them to the thank you page, send an email, and input the info in the database. attorneydisabilityinsurance dot com contact form and then index.php THANKS!

Posted by enkapsulate, 02-18-2010, 01:47 PM
Wow a complicated script there for a simple contact form. Why cant you use a simple HTML form on the site? Last edited by enkapsulate; 02-18-2010 at 01:53 PM.

Posted by mattle, 02-18-2010, 04:48 PM
1. Use [PHP] tags for php code 2. Post the MINIMUM code necessary to replicate the problem.

Posted by Blurple, 02-19-2010, 12:19 AM
Thanks, but i need this certain form to work. This is as much as i could narrow it down since i dont know whats wrong? Thanks for the replies

Posted by Blurple, 02-19-2010, 06:40 PM
Ok, i got it working, any idea on how i can make the thank you page show up inside the div when the form is submitted?

Posted by Doh004, 02-22-2010, 09:44 AM
You have the jQuery library loaded in that script. Use it to handle all AJAX usage and it'll make your life so much easier.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Selling domain names (Views: 583)
Encode Perl Script (Views: 629)
Net Sentry Down (Views: 870)
kazetech.com is down? (Views: 722)

Language: