Click to See Complete Forum and Search --> : php.exe crash on submit <form>
hello,
every time i submit the following form, an error box pops up with the message that php.exe caused a problem, and the browser returns an internal server error:
<form action="upload.phtml" method="post" enctype="multipart/form-data">
image:
<br>
<input type="file" name="image">
<input type="submit" value="absenden">
</form>
ma machine: win2k, apache 1.3.20, php 3.0.19
any suggestions,
tia,
alfons
ame12
06-28-2001, 05:58 PM
What are the contents of the upload.phtml file?? Here is my little test file (all in one upload test):
<HEAD>
<?php if (!isset($formtemp)) { ?>
<TITLE>File Uploading Interface</TITLE>
</HEAD>
<BODY>
<TABLE>
<FORM ENCTYPE="multipart/form-data" NAME=MyForm ACTION=upfile.php METHOD="POST">
<INPUT TYPE=hidden NAME=formtemp value=1>
<TR><TD>Choose File</TD><TD><INPUT NAME="MyFile"
TYPE="File"></TD></TR>
<TR><TD COLSPAN="2"><INPUT NAME="submit" VALUE="Submit"
TYPE="submit"></TD></TR>
</TABLE>
<?php } else { ?>
<?
If($MyFile != "none") {
copy($MyFile,"$MyFile_name");
unlink($MyFile);
}
else {
echo"You did not upload any file";
}
?>
<?php } ?>
</BODY>
Dave
===========================================
http://badblue.com/helpphp.htm
Free small footprint web server for Windows
PHP, file-sharing, Access/Excel transcoding
===========================================
hey dave, thanks for your response. my upload.phtml looks like your code... tried to execute the code you suggestet, with the effect that php.exe still crashes...
don't know whats the problem, it's a fresh installed machine...
Hello Fonsi
I have the same problem and don't know what's wrong ( the appliction is run on linux fine). can you give me a hint.
thanks in advance.
Matthias
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.