You are here: Re: Problem with an upload form « HTML « IT news, forums, messages
Re: Problem with an upload form

Posted by jojo on 10/24/84 11:59

bernhard.heinzel@gmail.com wrote:
>
> I got a little problem with an upload form. Everytime I post the form
> it only submits the filename without the path.

it does not only send the filename but the whole file...

> But I need the path.

what would you do with the path if you could get it? you cannot read
local files..

>
> So could anybody help?
>
> Here is the code:
>
> <p>New file.</p>
> <form action='script.py' method='post'>
> <table>
> <tr><th>File</th><td>:</td><td><input type='file'
> name='articlefilepath'></td></tr>
> </table>

What's the need of that table? use the <label>-element here:

<form action='script.py' method='post'>
<label for='file'>File: </label>
<input type='file'name='articlefilepath' id='file'>


> <p>
> <input type='hidden' name='task' value='insertfile'>
> <input type='submit' value='Insert Article'>
> <input type='reset' value='Clear'>
> </p>
> </form>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация