If we are talking about a simple post, I don't see the issue.  In the
following code (as gobots.php), I can type in period characters all day long
and it always returns just fine.   What the heck are you guys talking about?


<?php

if (isset($textguy))  
{
        echo $textguy;
        }
echo '  <form method="POST" action="gobots.php">
        <input type="text" name="textguy" size="20"><input type="submit"
value="Submit" name="B1">
        <input type="reset" value="Reset" name="B2">
        </form> ' ;
?>



-----Original Message-----
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 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'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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to