Re: Whats wrong here?
| From: | Shane McBride | Date: | Fri, 08 Sep 2000 19:25:21 +0000 |
| Subject: | Re: Whats wrong here? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15943@lists.php.net to get a copy of this message | ||
Yes, it is a form field. I actually have a form that is prone to user error.
I have an upload file field and then a file name field. This allows the end
user to screw up, but with my limited php ability I was just trying to get
something to work.
The end goal is to upload a file to a certain directory and retain the
original filename.
----- Original Message -----
From: "Tom Walsh" <TWalsh@achieversusa.com>
To: "'Shane McBride'" <php@riversidedesigns.net>; "Php-General"
<php-general@lists.php.net>
Sent: Friday, September 08, 2000 2:52 PM
Subject: RE: [PHP] Whats wrong here?
> Shane,
>
> Is $image an uploaded image from an html form?
>
> If that is the case then $image is the system pointer for the file...
> $image_name is the actual name of the file which was uploaded.
>
> HTH
>
> Tom Walsh
> http://www.designgeek.com
>
> > $new_file_name =
> > '/services/webpages/t/h/thebackcarecenter.com/public/admin/'.$image;
> >
> > What did I do wrong here? I'm tring to combine this path and
> > the variable to equal something like this:
> >
> > $new_file_name =
> > '/services/webpages/t/h/thebackcarecenter.com/public/admin/cool.jpg';
> >
> >
> >
> >