Hey,
Heres what I am doing, I have a form where a user can enter values and in
the form I have a FILE box so the
user can upload her pic, if she screws up anywhere (eg: putting an alphabet
in her date of birth) I send her back
to the form and her date of birth gets highlighted plus the value she
Ryan A wrote:
Hey,
Heres what I am doing, I have a form where a user can enter values and in
the form I have a FILE box so the
user can upload her pic, if she screws up anywhere (eg: putting an alphabet
in her date of birth) I send her back
to the form and her date of birth gets highlighted
clip
setting a VALUE=path/file but that
does not work.
/clip
As far as I know, you
can't set the initial values for 'file' inputs.
It's a security thing.
H, you're right,saw the same thing on google after digging a little
deeper, thanks mate.
Cheers,
Ryan
--
PHP General Mailing
Everything you need is here:
http://www.php.net/manual/en/features.file-upload.php#features.file-upload.post-method
John Taylor-Johnston wrote:
Instead of using fread, I want to upload a *.txt file using:
input type=file name=txt_file /
and display it in a textarea. Where do I go now?
Instead of using fread, I want to upload a *.txt file using:
input type=file name=txt_file /
and display it in a textarea. Where do I go now? Specifically, how do I get $contents?
Thanks,
John
?php
$filename = /usr/local/something.txt;
$handle = fopen ($filename, r);
$contents = fread
I realize that this isn't a PHP issue, but I'd like find out they
why's/wherefore's of this:
The W3C HTM 4x spec(s) say that when using the file type on a form
input element, User agents may use the value of the value attribute
as the initial file name.
I can't get Mozilla, Netscape, nor IE to
this doesn't relate directly to PHP,
but it will when I am done.
How can I create a file input that
reads from a directory on the server
instead of the users machine
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online -
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] input
, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] input type=file
so then maybe, if I understand it correctly
(which may or may not be true) I could read
the contents or a directory and populate a
dropdown list...?
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications
, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 5:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] input type=file
so then maybe, if I
10 matches
Mail list logo