please help, a strange problem I met in form subimt.
| From: | tttk | Date: | Wed, 18 Jul 2001 01:33:52 +0000 |
| Subject: | please help, a strange problem I met in form subimt. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8364@lists.php.net to get a copy of this message | ||
I use win2000, IIS, PHP4.04.
I made a form file which included a "file" object for uploading files, and
it's named "upload.php". The "action" parameter of the file object is set
to
another file called "submit.php".
In submit.php, I expect it return back to it's caller "upload.php" after
finishing it's task. So I added code as: { header("Location: upload.php"); }
in the end. After I submit my request, an error happened, which said "can't
find server or DNS error".
But, if I add a code as: { echo "<body
onload=\"location.assign('upload.php')\"></body>"; }
which product a javascript redirect indication, oH, it's OK.
The same case, if the form doesn't include a file object, the header()
function will execute correctly.
Who can tell me what's the reason? Thank you for all.