Re: . becomes _ when submitting page
| From: | Kjell Hansen | Date: | Tue, 10 Sep 2002 05:22:47 +0000 |
| Subject: | Re: . becomes _ when submitting page | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15740@lists.php.net to get a copy of this message | ||
I understand that, but how will I be able to determine wheather the
file was "Me.And.Jen.jpg" or "Me_And_Jen.jpg"?!?
The . gets to be _ and both files will have the same name, but Windows
tells me that they're different.
Thanx for your effort though.
SeaU
Kjell
> That's the reason I said reverse the string and replace the first
> occurance.
> The only time it would be a problem is if they did not put an
Extension.
> --
> Scott Carr
> OpenOffice.org
> Documentation Maintainer
> http://documentation.openoffice.org/
>
>
> Quoting Kjell Hansen <kjell.hansen@telia.com>:
>
> > Sure Scott,
> > so can I. The problem is when you have a filename like
> > "My_Wife_and_I_at_sea.jpg"
> > or "Me.And.Jen.jpg" or "Jen_and_Pete.gif"
> >
> > How can I be sure of what _ to change into . ?
> >
> > /Kjell
> >
> >
> > Scott Carr wrote:
> >
> > > You can still do so.
> > >
> > > Just reverse the string. Replace the first occurance of "_"
with ".".
> > > Re-reverse the string.
> > >
> > > Now you have a Filename.
> > > --
> > > Scott Carr
> > > OpenOffice.org
> > > Documentation Maintainer
> > > http://documentation.openoffice.org/
> > >
> > > Quoting Kjell Hansen <kjell.hansen@telia.com>:
> > >
> > > > Hmmm, I guess you're right. But I have some vague memories from
> useing
> > dots
> > > > in name attributes before. But that was with ASP & IIS...
> > > >
> > > > I have some excuse for using dots, it's Windows filenames. They
come
> > with
> > > > dots and I can't change the attribute names because it's
refering to
> the
> > > > file. I guess I will have to go around it with hidden fields and
> > indexes...
> > > > Too bad, it was such a brilliant solution with the filename in
the
> name
> > > > attribute
> > > > :(
> > > >
> > > > Anyway, thanx for enlightning me!
> > > >
> > > > Regards
> > > > Kjell
> > > >
> > > > Ignatius Reilly wrote:
> > > >
> > > > > Your naming conflicts with javascript. Remember what dots are
used
> for
> > in
> > > > > js.
> > > > >
> > > > > Avoid using other characters than alphanum and underscore.
There is
> no
> > > > > reason you should need to use any other character.
> > > > >
> > > > > I am not quite even sure that it is valid HTML to use dots in
> > attributes
> > > > > values.
> > > > >
> > > > > HTH
> > > > >
> > > > > Ignatius
> > > > >
> > > > > ____________________________________________
> > > > > ----- Original Message -----
> > > > > From: "Kjell Hansen" <kjell.hansen@telia.com>
> > > > > To: <php-windows@lists.php.net>
> > > > > Sent: Sunday, September 08, 2002 7:12 PM
> > > > > Subject: [PHP-WIN] . becomes _ when submitting page
> > > > >
> > > > > > Hi,
> > > > > > In my HTML page I have a textarea called "filename.ext"
when I
> > submit
> > > > > > the page I get "filename_ext" in my $_POST array.
> > > > > >
> > > > > > Anyone know why?!??!?
> > > > > >
> > > > > > TIA
> > > > > > Kjell
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > PHP Windows Mailing List (http://www.php.net/)
> > > > > > To unsubscribe, visit:
> > > > > > http://www.php.net/unsub.php
> > > > > >
> > > > > >
> > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit:
> > > > http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > > -------------------------------------------------
> > > This mail sent through IMP: http://horde.org/imp/
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>