upload data (from a form) and functions.
| From: | zerosumzero@yahoo.com | Date: | Fri, 06 Jul 1979 21:33:06 +0000 |
| Subject: | upload data (from a form) and functions. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56577@lists.php.net to get a copy of this message | ||
There are a bunch places in my site where I take data from a from like:
<form method="post" action="somefile.php3"
enctype="multipart/form-data">
<input type="file" name="form_data" size="40">
<input type="Submit" name="submit" value="submit form">
</form>
Can I make a function in global.inc that will do the
move_uploaded_file ($form_data, $path);
function? How do I pass $form_data to such a function?
I've tried calling
copy_my_file ($form_data);
but bad things happed... also can use $form_data_size and the like in an
outside function?
Susan
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com