Upload Problem
| From: | Hamed Mozaffari | Date: | Sun, 18 Jan 2009 20:08:00 +0000 |
| Subject: | Upload Problem | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-3580@lists.php.net to get a copy of this message | ||
Hi,
I have a problem.
I have a function that it provide a form that in a part of it I can upload
a file:
/****code of uploading*****/
echo "<tr>\n"
."<td ><span class=\"pn-normal\"><img
src='images/mandatory.gif'><strong><label
for=\"email_new_user\">"._FICHE_PIC."</label></strong></span></td>\n"
."<td><input type=\"file\"
name=\"pictureF\"/></td>\n"
."</tr>\n"
."<tr>\n";
An other function saves the previous text and uploaded files.
/****code of saving*****/
if (is_uploaded_file($_FILES['pictureF']['tmp_name']))
$uid=pnUserGetVar('uid');
move_uploaded_file($_FILES['pictureF']['tmp_name'],
$path."/PhotoF/".$id."_".$uid.".gif");
Now when I fill all fields of form and click on submit to save it, only the
text save in database and uploaded file does not save.
Please help me.
Thank you very much.
--
Mozaffari.H
+98 9353426174
hamed.mozaffari@gmail.com