Page 1 of 1

upload form problem.........

Posted: Wed Sep 05, 2007 5:41 am
by myharshdesigner
i cant able to transfer data through this given form

Email is going to transfer but

file path is not going to transfer

in a text format ?

i also want to display Both on the web page
so what i suppose to do ?

Code: Select all

<body>
<center>
<br><br><br><br><br>
<form enctype="multipart/form-data" method="post" action="result.php">
<table width="343" border="0">
  <tr>
    <td width="101">Email ID : </td>
    <td width="226"><input type="text" name="textfield"></td>
  </tr>
  <tr>
    <td>Brows File : </td>
    <td><label>
      <input type="file" name="file">
      </label></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="Submit"></td>
  </tr>
</table>
</form>
</center>
</body>

Posted: Wed Sep 05, 2007 6:16 am
by aceconcepts
Show code for result.php

Posted: Wed Sep 05, 2007 8:30 am
by playgames
file used $_FILE[]

the other field used $_POST[]

Posted: Wed Sep 05, 2007 9:40 am
by miro_igov
File path is not going to transfer 8O actually file upload does upload a file and sends its filename, not the path on client machine.

Posted: Wed Sep 05, 2007 9:40 am
by aceconcepts
This is a great tutorial on file uploads.

http://www.tizag.com/phpT/fileupload.php