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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myharshdesigner
Forum Commoner
Posts: 43
Joined: Sat Apr 21, 2007 8:23 pm

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

Post 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>
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

Show code for result.php
User avatar
playgames
Forum Newbie
Posts: 22
Joined: Tue Sep 04, 2007 4:28 am

Post by playgames »

file used $_FILE[]

the other field used $_POST[]
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

This is a great tutorial on file uploads.

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