View Single Post
Old 02-07-2013, 03:41 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
This line of code in the $post method section:
Code:
$("div#notif-me-msg-box #notif-msg").html("Thank's. You will be notified when Multi Display Utility has launched");
Forces the return code to the thanks line and not what is returned from the php file.
Your php file has no echo statements so it wouldn't return anything anyway.

Put the
Code:
"Thank's. You will be notified when Multi Display Utility has launched"
as an echo in ...form-2.php when it is successful and change main file line to this:
Code:
$("div#notif-me-msg-box #notif-msg").html(response);
And for your question you need to also echo the error upon a failure.
sunfighter is offline   Reply With Quote