PDA

View Full Version : enctype in Admincp forms?


sicloan
09-30-2004, 10:23 PM
Hey all.

i'm having a bit of trouble with my admincp modification. I need to be able to upload a file, i have all that worked out but i'm getting errors becuase my enctype is not specified. If anyone could tell me how to add an enctype to a cp form with:


print_form_header(' {file name}', ' {post "do"}');

i didnt want to include my post vars so you'll have to live with my replacements in {}
THanks in advance guys!

sicloan
09-30-2004, 10:56 PM
after some looking i found my answer.. man it took along time but i'm glad i looked.

If anyone else needs this info:


print_form_header('file_name', 'upload', 1, 1, 'do_fileupload');


where file_name = form direction -> extension .php
upload tells the form processing to include the enctype
1 , 1 i dunno but its there?!?
do_fileupload is the $_post['do'] command.


Again im glad i found this and if anyone tired to find it thanks for helping. I hope this helps someone else.