note 88388 modified in features.file-upload by danbrown
| From: | danbrown@php.net | Date: | Wed, 21 Jan 2009 21:57:42 +0000 |
| Subject: | note 88388 modified in features.file-upload by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149636@lists.php.net to get a copy of this message | ||
FYI: You can't upload a file in one form, inside of another form. This messed me up pretty
bad, for 5 hours.
Ie:
<form id="frm_save" name="frm_save"
action="'.$_SERVER['PHP_SELF'].'" method="post">
<form id="frm_SubmitImage" name="frm_SubmitImage"
action="'.$_SERVER['PHP_SELF'].'" method="post"
enctype="multipart/form-data">
<input name="txt_file" type="file" id="txt_file"
size="50" />
<input type="submit" name="SubmitFile" value="Upload File"
accesskey="ENTER" tabindex="4" />
</form>
</form>
--was--
FYI: You can't upload a file in one form, inside of another form. This messed me up pretty
bad, for 5 hours.
Ie:
<form id="frm_save" name="frm_save"
action="'.$_SERVER['PHP_SELF'].'" method="post">
<form id="frm_SubmitImage" name="frm_SubmitImage"
action="'.$_SERVER['PHP_SELF'].'" method="post"
enctype="multipart/form-data">
<input name="txt_file" type="file" id="txt_file"
size="50" />
<input type="submit" name="SubmitFile" value="Upload
File" accesskey="ENTER" tabindex="4" />
</form>
</form>
http://php.net/manual/en/features.file-upload.php