![]() |
[Resolved] Multipart Forms not passing data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [Resolved] Multipart Forms not passing data (/showthread.php?tid=3855) |
[Resolved] Multipart Forms not passing data - El Forum - 10-25-2007 [eluser]Phil Sturgeon[/eluser] Im using the file upload class for the first time in a long time and getting the craziest error! Quote:<?=form_open_multipart('contests/mosaic/submit');?> This is sent to a page where I have just put in a BASIC print_r($_POST); for debugging as it wasnt giving me the data I expected. The post arr is totally empty, not even submit shows. If I remove _multipart then it works fine, but of course thats not going to help me upload any files! Anyone have any ideas? [Resolved] Multipart Forms not passing data - El Forum - 10-25-2007 [eluser]alexsancho[/eluser] can you show the generated html from this view? I'm using multipart forms for upload with no problem, but my forms look like Code: <?=form_open_multipart($method, array('id' => 'admin-form'));?> [Resolved] Multipart Forms not passing data - El Forum - 10-25-2007 [eluser]Phil Sturgeon[/eluser] Heres the HTML generated. Code: <form action="http://localhost/kicknote/index.php/contests/mosaic/submit" method="post" enctype="multipart/form-data"> I have used file uploads plenty of times in CI and plain. To me this looks fine! [Resolved] Multipart Forms not passing data - El Forum - 10-25-2007 [eluser]phester[/eluser] I remember I had the same problem a long time ago. I think that the values of upload fields are stored in $_FILES instead of $_POST. You do not need to worry about where the values are stored however if you use the CI upload class. (I'm assuming you will eventually want to upload these pics). You might also want to see this I'm fairly new at this too, so I might be wrong. Please excuse me if I'm wrong! Thanks. [Resolved] Multipart Forms not passing data - El Forum - 10-25-2007 [eluser]Phil Sturgeon[/eluser] Fair enough, didnt think POST would be destroyed like that, we seem to have $_FILES working fine though. n00b mistake. |