Hello,
I have this weird issue with my simple upload form for different files.
<form enctype="multipart/form-data" action="mesaje_furnizori.php" method="GET">
<table>
<tr><td align="right">Va rugam selectati » </td><td><?php echo $selectare; ?></td></tr>
<tr><td align="right"><td><input type="file" name="file" id="file"/></td></tr>
<tr><td align="right" colspan="2">Fisiere suportate (.*gif,*.jpg,.*jpeg,.*png,.*bmp,.*doc,.*docx,.*xls,.*xlsx) Marimea maxima de: <strong>5MB</strong></td></tr>
<tr><td colspan="2"><textarea name="mesajTrimis" cols="70" rows="15"></textarea></td></tr>
</table>
<input type="hidden" name="trimis" value="ok" />
<input type="submit" value="Trimite"/>
</form>
The file is passed into my TMP.
Array
(
[file] => Array
(
[name] => mesaje.png
[type] => image/png
[tmp_name] => /tmp/phpvdjnGr
[error] => 0
[size] => 4009
)
)
The weird part is when I print_r($_REQUEST); The file is not showing up ($_REQUEST) ... can't figure out why ... Please help with this one
Array
(
[furnizor_selectat] => 12555
[mesajTrimis] => test
[trimis] => ok
[PHPSESSID] => 5pkk0q1ou8dkk46etqmsldprh4
[__utma] => 48988665.324662620.1320745888.1321512004.1321522554.23
[__utmb] => 48988665.5.10.1321522554
[__utmc] => 48988665
[__utmz] => 48988665.1320745888.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
)
Notice: Undefined index: file in /web/sites/blabla.com/mesaje_furnizori.php on line 156