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 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 <[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 > > ------------------------------------------------- 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