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 13:22

>
> OK, no problem. Just:
>
> <form action=test.php method=post>
> <input type=hidden name="filename[0]" value="filename.txt">
> <input type=submit name="Submit[0]">
> <input type=hidden name="filename[1]" value="filename.pdf">
> <input type=submit name="Submit[1]">
> <input type=hidden name="filename[2]" value="filename.doc">
> <input type=submit name="Submit[2]">
> <input type=hidden name="filename[3]" value="filename.html">
> <input type=submit name="Submit[3]">
> </form>
>
> Simply loop through the Submit array to find which one was pressed with
> isset(), and pick the appropriate file from the filename array.
>

I've gone for this approach. Works a treat. Many thanks for the help
folks.

 

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

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