You are here: Re: PHP Basics « PHP Programming Language « IT news, forums, messages
Re: PHP Basics

Posted by Erwin Moller on 01/09/08 10:34

Saravana wrote:
> Hi all,
>
> I am new to this group and I am new to PHP too.
>
> I want to create a php page with a file browse button and I have to
> add the file path in Mysql table after submit.
>
> Kindly bring me your ideas.

Hi,

The HTML part for fileuploads is easy (assuming you know HTML)
Google for file upload, follow first link:
http://www.cs.tut.fi/~jkorpela/forms/file.html

for an introduction.

About saving the file path: forget it.
Fileuploads only send the file(s) to the server, NOT the path where they
reside on the clientmachine.
Even Javascript will not help you with this: It is also crippled on
purpose when it come to real paths and files.

Reason?
It is none of the server's business where the original file is on the
client.

Regards,
Erwin Moller

>
> Thanks,
> S.SARAVANAKUMAR
>

 

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

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