You are here: Re: method="POST" changes '.' to '_' « PHP Programming Language « IT news, forums, messages
Re: method="POST" changes '.' to '_'

Posted by Robert S on 07/07/06 07:26

> Why are you even passing the filename in a button's name?
>
> Why not:
>
> <form action=test.php method=post>
> <div>
> <input type=hidden name=myfile value="filename.txt">
> <input type=submit>
> </div>
> </form>

The page is a fax client that allows large numbers of files to be faxed
off to multiple recipients. I have a whole lot of buttons and text
inputs that refer to different files. The receiving page loops through
$POST and identifies the file that the button refers to. All text
inputs and checkboxes etc need to be sent to the receiving page, so I
can't use multiple <form> elements. The example I gave was just an
illustrative example - its not from my code. As far as I can see this
seems to be the only way of doing it. The files are .PDF files created
by cups-pdf - so they are FULL of underscores. If I use an <a href>
tag, the POST variables don't get sent to the receiving page.

bin2hex looks like the way to go.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация