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.