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 reve
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 <[EMAIL PROTECTED]>:
> Sure Sco
fine. What the heck are you guys talking about?
>
>
>
> if (isset($textguy))
> {
> echo $textguy;
> }
> echo '
> value="Submit" name="B1">
>
> ' ;
> ?>
>
>
>
> -----Original Message-
> From: Sco
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 "
age-
From: Scott Carr [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] . becomes _ when submitting page
You can still do so.
Just reverse the string. Replace the first occurance of "_" with ".".
Re-reverse the
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 <[EMAIL PROTECTED]>:
> Hmmm, I guess you
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
Actually, this is a PHP feature, not a Javascript bug. The '.'
character is very special in PHP, so it cannot be used for variable
scoping like in VB or Java. The PHP engine will automaticly translate
any '.' into a '_' to make it PHP-safe. The PEAR folks suggest using
'::' to scope variabl
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