How to show a server side error message in a popup using php
- by Fero
Hi all,
I found some of the similar questions here but they are all in C#.
So kindly tell me the easiest way to show the server side error message using popup.
The popup may be anything like thickbox, modalpopup etc...
Here is the sample code. I didn't get the error message in the popup.
<script type="text/javascript" src="thickbox/jquery-latest.js"></script>
<script type="text/javascript" src="thickbox/thickbox.js"></script>
<link href="thickbox/thickbox.css" rel="stylesheet" type="text/css" />
<span class="prtexterror" style="color:#FF0000;display:none;" id="hiddenModalContent" >{$error_login}</span>
{literal}
<script language="javascript" type="text/javascript">
$(document).ready(function() {
tb_show("Please, login", "?tb_inline=true&inlineId=hiddenModalContent&height=180&width=300&modal=true", null);
});
</script>
{/literal}
Any other ways are always welcome.
thanks in advance