|
Posted by Rik Wasmus on 10/14/07 14:33
On Sun, 14 Oct 2007 16:16:27 +0200, <william.hooper@gmail.com> wrote:
> Here is a manual... http://www.php.net/manual/en/ but it has no
> chapter 65 and it looks quite long...
It has, he's referring to:
http://www.php.net/manual/en/faq.html.php#faq.html.form-image
(wouldn't say it's easy to find though, with your particular problem, as
it has nothing to do with the 'image' it's referring to)
Short answer: you cannot use a dot in names. (It's probably a lousy
inheritance from the 'register_globals' directive, as normally an array
key can contain a dot without any problems.
Solution (in order of my own personal preference):
option1: create (unique) identifiers for the files in your directory, and
use those instead of the 'real' name.
option2: get the filename to the script as a value rather then a key
(using a checkbox & 'delete selected' button for instance).
option3: use a different <FORM> for each file in your interface, and give
it a hidden INPUT with the filename.
option4: (not recommended) keep the same form, but set a hidden input
containing the filename as a value in the onsubmit event of the form or
the onclick event of the button.
--
Rik Wasmus
Navigation:
[Reply to this message]
|