Advertisement

04.10.2008 at 12:38PM PDT, ID: 23313108 | Points: 50
[x]
Attachment Details

didnt give the file path

Asked by Koolandrew in Perl Programming Language

Tags: ,

Hi
I am using HTML file control and when i try to get the file path it shows me empty where as when i check its name it give me its me.

$_FILE['tmpfile']['tmp_name'] when i run this command it gives me empty string.
$_FILE['tmpfile']['name'] when i run this it shows me the file name just name not the complete path.

let me copy some code for you.

ThanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
<?php
if(isset($_POST['btnsave']))
{		
   echo "Upload: " . $_FILES["tmpfile"]["name"] . "<br />";
   echo "Type: " . $_FILES["tmpfile"]["type"] . "<br />";
   echo "Size: " . ($_FILES["tmpfile"]["size"] / 1024) . " Kb<br />";
   echo "Stored in: " . $_FILES["tmpfile"]["tmp_name"];
   exit;
}
?>
 
<form method="post" action="" enctype="multipart/form-data" name="frm_price" id="frm_price">
<input type="file" name="tmpfile" id="tmpfile">
<input name="btnsave" value="SAVE" type="submit" />
</form>
[+][-]04.10.2008 at 01:25PM PDT, ID: 21329012

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 01:39PM PDT, ID: 21329145

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 01:43PM PDT, ID: 21329183

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 02:23PM PDT, ID: 21329516

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628