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.
[Back to original message]
|