There is nothing strange in this script. 
Except for this.

        header("Refresh: 0;url=failed2.php");

Could this be the problem? This is a redirect but couldn't you use a
header("Location: failed2.php");

If this isn't the problem. Maybe you can post the script which makes the
request (the script with the form)

Jerry Verhoef
> -----Original Message-----
> From: Miftakhul Huda [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 12:45 PM
> To: Jerry Verhoef (UGBI)
> Subject: Re: [PHP] POST 2X
> 
> 
> I grab this from my Apache access log :
> 10.0.7.7 - - [25/Jan/2002:08:13:21 +0700] "POST 
> /komplain/kirimform.php
> HTTP/1.1" 200 1469
> 10.0.7.7 - - [25/Jan/2002:08:13:21 +0700] "POST 
> /komplain/kirimform.php
> HTTP/1.1" 200 1469
> 
> 10.0.7.17 - - [25/Jan/2002:09:02:52 +0700] "POST 
> /komplain/kirimform.php
> HTTP/1.1" 200 1473
> 10.0.7.17 - - [25/Jan/2002:09:02:52 +0700] "POST 
> /komplain/kirimform.php
> HTTP/1.1" 200 1473
> 
> And this is my script :
> 
> <?
> session_start();
> $connect = mysql_connect ("localhost","user","passwd") or die 
> ("Could not
> connect");
> $db = mysql_select_db("whodha", $connect) or die ("Database 
> Error, please
> contact your Administrator.");
> $sql="select * from aa_auth where user='$username' and
> passwd=PASSWORD('$password')";
> $query=mysql_query($sql,$connect);
> $num=mysql_num_rows($query);
> if ($num != 1 ) {
>   session_unset();
>   session_destroy();
>   header("Refresh: 0;url=failed2.php");
> }
> else {
> ?>
> <html>
> <head>
>  <title>Save Data</title>
> </head>
> 
> <body>
> <?
> $year =date ( "Y");
> $mnt =date ( "m");
> $day =date ( "d");
> $tanggal=$year."-".$mnt."-".$day;
> $jam = date ( "H");
> $menit =date ( "i");
> $detik =date ( "s");
> $minggu= date("w");
> $times = $jam.":".$menit.":".$detik;
> if (@$definisi==""){ $definisi="N/A"; }
> else { $definisi=$definisi; }
>  $sql="insert into komplain (tanggal,operator, shift, 
> user_nama, masalah,
> definisi, ket_mas,  status, cat_stat, jam, no_telp) values
> ('$tanggal','$nama','$shift','$namaplgn','$masalah','$definisi
> ','$catmas','$
> status','$catps','$times','$telpfax')";
>  mysql_query($sql,$connect);
> // }
> echo "<p align='center'>";
> echo "<font size='+3'>Terimakasih, $nama, telah mengisi trouble
> ticket.</font><br><br>";
> echo "Pilih <font color='blue'>Isi Ulang</font> untuk mengisi 
> form lagi,
> atau <font color='blue'>View Data</font> untuk melihat data.";
> ?>
> <br>
> |&nbsp;<a href="main.php" onmousemove="window.status='Isi 
> Ulang';return
> true" onmouseout="window.status='Save Data';return true;">Isi
> Ulang</a>&nbsp;
> |&nbsp;<a href="view.php" onmousemove="window.status='Data 
> Komplain';return
> true" onmouseout="window.status='Save Data';return true;">View
> Data</a>&nbsp;|
> <? include ("footer.html"); ?>
> </body>
> </html>
> <? } ?>
> 
> 
> ----- Original Message -----
> From: "Jerry Verhoef (UGBI)" <[EMAIL PROTECTED]>
> To: "'M-H-d'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, January 30, 2002 6:29 PM
> Subject: RE: [PHP] POST 2X
> 
> 
> > I think I speak for everone:
> >
> > HUH ????
> >
> > Maybe some more info? A piece of code? Some clear 
> infomation on what is
> > going wrong and when does this happen? And what action is 
> happening two
> > times?
> >
> > kind regards,
> > Jerry Verhoef
> >
> 
> 
> 


The information contained in this email is confidential and
may be legally privileged. It is intended solely for the 
addressee. Access to this email by anyone else is 
unauthorized. If you are not the intended recipient, any 
form of disclosure, production, distribution or any action 
taken or refrained from in reliance on it, is prohibited and 
may be unlawful. Please notify the sender immediately.

The content of the email is not legally binding unless 
confirmed by letter bearing two authorized signatures.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to