Welcome I want the modus operandi of pop-ups for the emergence of a letter that was added to a new record database
eh.. What?
I would not use popups in any form, as they are very intrusive.
J.
<form action="" onSubmit="return validate()" method="post" enctype="multipart/form-data" name="form1"><table width="100%" border="0" align="center" bordercolor="#333333" background="../images/0201_01.jpg"> <tr> <td bordercolor="#000000" background="../images/bg.gif"><div align="center" class="style2">اضافة قسم جديد </div></td> </tr> <tr> <td bordercolor="#000000"><table width="38%" border="0" align="center" background="../images/0201_01.jpg"> <tr> <td width="45%"><label> <div align="right"> <input name="DeptName" type="text" id="DeptName"/> </div> </label></td> <td width="2%"><div align="center" class="style1">:</div></td> <td width="53%" background="../images/bg.JPG"><div align="center" class="style4"> name of department </div></td> </tr> <tr> <td><label> <div align="right"> <input type="text" name="DeptType" id="DeptType" /> </div> </label></td> <td><div align="center" class="style1">:</div></td> <td background="../images/bg.JPG"><div align="center" class="style4">type department </div></td> </tr> </table></td> </tr> <tr> <td bordercolor="#000000"><label> <div align="center"> <input type="submit" name="Submit" value=".:add:." /> </div> </label><tr></tr> <?php echo $message; ?> <script> </script> <td bordercolor="#000000"></td> <td bordercolor="#000000"></tr> </table> </form>
i wont when add new record , print message on windows
So you want $message to be the pop up?
Pop ups are created using javascript usually.
Have a look at the source of some sites that use pop-ups. Its quite a simple code.
ya <?php echo $message; ?> i wont to make pop-ups but how
<a href="#" onclick='window.open ("http://www.example.com", "mywindow","menubar=1,resizable=1,width=350,height=250;")'>Click for Popup</a>
That should work. Obviously you need to click it though.
The-Master wrote:<a href="#" onclick='window.open ("http://www.example.com", "mywindow","menubar=1,resizable=1,width=350,height=250;")'>Click for Popup</a> That should work. Obviously you need to click it though.
no
no i wont show message
do you mean to use the alert() function in javascript?
Once more: this is actually a PhP forum..
<script language="javascript">alert("<?PHP echo $message;?>");</script>
There are other ways to do more advanced popups, but that'll get you your basic alert box with an OK button and your message in it, I think.
I think he wants an automatic popup or?
That is automatic. As soon as the alert() call loads, it'll pop up an alert box. It won't spawn a whole new browser window, like I said, but if he just needs to display a message, he doesn't really need a whole browser window because there's no input or interaction.
thank it goood
You're welcome. Don't forget to mark this thread resolved, please.