הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה בבקשה (https://hosts.co.il/forums/showthread.php?t=37753)

sariel10 10-01-07 22:40

עזרה בבקשה
 
יש לי מערכת ד"שים ואני רוצה להגדיר בקוד שאחרי ששולחים את הד"ש זה יחזיר בחזרה לדף
של הד"שים גם בFF וגם בexplorer

http://www.up-images.il-il.com/dash/dash/main.php

וזה הקוד של הדף:

HTML קוד:

<BODY bgcolor="#000000" text="ffffff" link="FFFFFF" vlink="FFFFFF" alink="FFFFFF" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0" rightmargin="0">
<?php
// Copyright © Hanan. All rights reserved.
require('configure.php');
require('header.php');
$settings=mysql_fetch_array(mysql_query("SELECT * FROM settings"));
$date=date("djY");
$time=date("h:i");
switch ($_GET['a']) {
case "addregi":
$query=mysql_fetch_array(mysql_query("SELECT * FROM reg ORDER BY id DESC LIMIT 1"));
if ($query['ip'] == $_SERVER['REMOTE_ADDR']) {
echo "<b>&agrave;&eacute;&eth;&ecirc; &eacute;&euml;&aring;&igrave; &igrave;&ugrave;&igrave;&aring;&ccedil; &atilde;\"&ugrave; &ocirc;&ograve;&icirc;&eacute;&iacute; &aacute;&oslash;&ouml;&oacute;</b>
";
} else {
if ($_POST['sender'] && $_POST['forto'] && $_POST['msg']) {
mysql_query("INSERT INTO reg (sender,forto,msg,datetime,time,ip) VALUES ('".$_POST['sender']."','".$_POST['forto']."','".$_POST['msg']."','".$date."','".$time."','".$_SERVER['REMOTE_ADDR']."')") or die (mysql_error());
?>
<body OnLoad='window.close();opener.location.reload();'>
<?php
} else {
echo "<b>&agrave;&eth;&agrave; &icirc;&igrave;&agrave; &agrave;&uacute; &euml;&igrave; &auml;&ocirc;&oslash;&egrave;&eacute;&iacute;, &uacute;&aring;&atilde;&auml;</b>";
}
}
break;
default:
mysql_query("DELETE FROM reg WHERE datetime !='".$date."'");

?>


<form action="<?= $_SERVER['PHP_SELF']; ?>?a=addregi" method="POST">
        <table cellspacing="0" cellpadding="0" width="151" align="center" style="border: 1px solid #0
;"
>


                <tr>

</tr></table>
        <table cellspacing="1" cellpadding="0" bgcolor="<?= $settings['backdashcolor']; ?>" width="151" align="center" style="border-right: 1px solid #000000;border-left: 1px solid #000000;">

<tr>
                        <input name="sender" type="text" style="border:1px solid #FF9900; width: 200px; font-family:Arial; font-size:8pt; color:#FFFFFF; font-weight:bold; background-color:#2A2A2A" dir="rtl" value="שם השולח" size="1" maxlength="30">
</td>
                        <td align="right" dir="rtl" width="30"><font color="<?= $settings['dashcolor']; ?>"><b></b></font></td>
<tr>
                        <div align="center">
  <input name="msg" type="text" style="border:1px solid #FF9900; width: 200px; font-family:Arial; font-size:8pt; font-weight:bold; color:#FFFFFF; background-color:#2A2A2A" dir="rtl" value="הד&quot;ש שלך" size="1" maxlength="100">
                        <td align="right" dir="rtl" width="120"><font color="<?= $settings['dashcolor']; ?>"><b></b></font></td>


</table>

                        <td bgcolor="<?= $settings['backtext']; ?>" align="center" height="20"><b><input type="submit" name="send" value="שלח" ></b></td>


</tr></table>

</form>
<?php
break;
}
mysql_close($connation);
// Copyright © Hanan. All rights reserved.
?>


Tomer 10-01-07 22:47

תבקש עזרה מ Hanan, נעול.


כל הזמנים הם GMT +2. הזמן כעת הוא 09:52.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ