Queries Regarding File Upload and Form Object enctype attribute

From: Date: Wed, 26 Nov 2003 12:15:54 +0000
Subject: Queries Regarding File Upload and Form Object enctype attribute
Groups: php.general 
Request: Send a blank email to php-general+get-171037@lists.php.net to get a copy of this message
Dear Mr Jay Blanchard > > There are some queries regarding PHP 4.1.As you mentioned in php 4.1 > register_globals=off. are set for security reasons. > > Is it Required to have Form attribute as enctype="multipart/form-data" if i > have a File Upload on the Particular Form. > > <form name=form1 action="test.php3" method="Post" > enctype="multipart/form-data"> > i.e <input type=file name=filename> > > I am Facing a Problem as when i am removing the enctype attribute in Form > object, i am able to pass form values data > from one form to another form i.e the destination form will able to retrieve > the form values, but from the source form when i keep the enctype attribute > in the source form object, i am unable to pass the values i.e the > destination form is unable to retrieve > the values passed from source form. > > Second Problem is I am unable to retrieve the image name using > $_FILES['filename']['name']; in the Destination form. > The source form has the file upload html tag > > <form name=form1 action="test.php3" method="Post" > enctype="multipart/form-data"> > i.e <input type=file name=filename> > <input type=submit value=submit> > > Awaiting Your Prompt Reply, > > Thanks & Regards, > Prashant S Akerkar > > ----- Original Message ----- From: Jay Blanchard <jay.blanchard@niicommunications.com> To: Decapode Azur <blue_prawn@tuxfamily.org>; <php-general@lists.php.net> Sent: Tuesday, November 18, 2003 6:13 PM Subject: RE: [PHP] diff [snip] Is there a php function close to the *nix diff comand? (in order to compare 2 multi-lines strings) [/snip] http://us2.php.net/manual/en/function.strcmp.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#171037) next »