JQuery Modal Box On PHP else die
<p>Just wondering if there is a way to include a JQuery modal box/popup in the event of a PHP else die statement, e.g: <code>else die("Invalid");</code>.</p>

<p>So rather than the  output <code>Invalid</code> displaying on the page, the else die triggers a JQuery modal popup box that contains the output <code>Invalid</code>.</p>
