Welcome Guest, Not a member yet? Register   Sign In
forms uploading image and text
#1

[eluser]andieevans[/eluser]
Hi

New to ci and the site.

Working on a website where I want the user to upload an some information which can be text and or an image..

so I have a form with some text inputs and a single file input.

I generated the form using the form helper

echo form_input('myinput')
echo form_submit('submit')

and so on...


trouble is I can see from my code that I am getting the text inputs data posted, but the file input appears to be blank...

I have some code like this to see what is being posted:

Code:
print_r($this->input->post());
  die();

this is handy as I can see every form field and the value being sent.

the problem I have is that even if I select a file, the file input is not listed in the array.... any ideas what could be up?



Messages In This Thread
forms uploading image and text - by El Forum - 05-09-2012, 08:01 AM
forms uploading image and text - by El Forum - 05-09-2012, 08:16 AM
forms uploading image and text - by El Forum - 05-09-2012, 08:22 AM
forms uploading image and text - by El Forum - 05-09-2012, 08:33 AM
forms uploading image and text - by El Forum - 05-12-2012, 12:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB