upload image in a form - 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: upload image in a form (/showthread.php?tid=53610) |
upload image in a form - El Forum - 07-31-2012 [eluser]santorini[/eluser] hello, is it possible to upload a picture (form_open_multipart), within an 'normal' input-form, including different values(date,name, email etc.). ? All entries should be sent with only one submit button. My picture upload works only with an additional submit-button. Code: //view thanks for helping me :-) upload image in a form - El Forum - 07-31-2012 [eluser]CroNiX[/eluser] That should all be part of a single, multipart form with only 1 open and 1 close form tag, and a single submit just before the form_close(). Also, in one of your forms you are sending the POST data to 'redaktion/agenda/doUpload' and the other is being sent to the current URL, whatever that is. Don't know if it makes a difference for you. Try: Code: echo form_open_multipart('redaktion/agenda/doUpload') . PHP_EOL; upload image in a form - El Forum - 07-31-2012 [eluser]santorini[/eluser] Thank you very much..You've helped me a lot! Now i'm able to send the image file and the other form datas to a controller for for further processing. The form datas are stored in the db and displayed in a view. The image file is saved in the correct folder. Now I have to show the image on the same view.. Hope it will work :-) Thanks again cheers santorini |