This is a discussion on "enctype" within the PHP Forum section. This forum, and the thread "enctype are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
enctype
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
enctype
Hi,
When I use enctype="multipart/form-data" to transfer data to another page. The other pages doesnt reference the form values when I try to apply it to a variable when I submit it i.e $userfile=$_POST['userfile']; I get an index error for usefile value. Any help would be great. |
|
|
|
|||
|
The $_FILES array is where PHP stores all the information about uploaded files, rather than $_POST.
Try changing to: $userfile=$_FILES['userfile']['tmp_name']; If you want to see what's going on with the from post try adding:
|
|
|||
|
Re: enctype
Hi, thanks for the help but it still comes up with the same error with reference to undefined index.
Any other advice would be great Thanks |
|
|||
|
Re: enctype
This is the code I have - it references values from a previous form. The name of the file input is picture. Any suggestions why I get a index error for picture would be great.
Last edited by sypher; Mar 20th, 2006 at 16:33. |
![]() |
| Tags |
| enctype |
| Thread Tools | |
|
|