path + filename
am 05.09.2007 17:04:00 von Gustav Wiberg
Hi!
=20
=20
From a browse/file-button in a html-form, how Do I retrieve the actual name=
including the path to it???
=20
I don't want just filename.doc.=20
This would returnthe filename only...
$doc =3D $_FILES['frmNewsDocument']['name'];
I want to retrieve c:\program\filename.doc
=20
Best regards
/Gustav Wiberg
No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-04 =
22:36
=20
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: path + filename
am 05.09.2007 17:26:22 von John Mertic
That once again is entirely determined by the browser; PHP only gets
what's the the $_FILES['frmNewsDocument'] array.
That said, perhaps in the onsubmit event of the form you could stick
some javascript in that pushed the full path into another hidden form
variable.
On 9/5/07, Gustav Wiberg wrote:
> Hi!
>
>
> From a browse/file-button in a html-form, how Do I retrieve the actual name including the path to it???
>
> I don't want just filename.doc.
>
>
> This would returnthe filename only...
> $doc = $_FILES['frmNewsDocument']['name'];
>
>
> I want to retrieve c:\program\filename.doc
>
>
> Best regards
> /Gustav Wiberg
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-04 22:36
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."
-Mark Twain
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: path + filename
am 05.09.2007 17:47:00 von Gustav Wiberg
Hi!
Yes I thought so, so I did exactly what do you typed.. A little bit of Java=
script did the trick! Thanx again!
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: John Mertic [mailto:jmertic@gmail.com]=20
Sent: Wednesday, September 05, 2007 5:26 PM
To: Gustav Wiberg
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] path + filename
That once again is entirely determined by the browser; PHP only gets
what's the the $_FILES['frmNewsDocument'] array.
That said, perhaps in the onsubmit event of the form you could stick
some javascript in that pushed the full path into another hidden form
variable.
On 9/5/07, Gustav Wiberg wrote:
> Hi!
>
>
> From a browse/file-button in a html-form, how Do I retrieve the actual na=
me including the path to it???
>
> I don't want just filename.doc.
>
>
> This would returnthe filename only...
> $doc =3D $_FILES['frmNewsDocument']['name'];
>
>
> I want to retrieve c:\program\filename.doc
>
>
> Best regards
> /Gustav Wiberg
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-0=
4 22:36
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--=20
--=20
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."
-Mark Twain
No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-04 =
22:36
=20
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php