Re: GET question
| From: | Evan | Date: | Mon, 29 Apr 2002 10:36:07 +0000 |
| Subject: | Re: GET question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95125@lists.php.net to get a copy of this message | ||
Thanks to all for your kind attention.
What I need is exactly what Miguel Cruz wrote.
What I wanted to do was a multidelete, eg:
I show the content of a table in a php page and near every row I put a
checkbox binding its checked value with ID column.
When I submit a form I send the form vars to the script that deletes the
rows checked from the DB.
Till now I used the escamotage described by David Freeman with this variant:
ID_N (where N is integer).
Then I split("_", "ID_N"), got the second elemnt of the array and then build
the string "ID=5 OR ID=6 ..."
But I didn't like it, it seemed not very "elegant" to me.
By the way does someone know where can I find some technical information on
how GET or POST parameters are passed (HTTP specs?) and handled by various
scripting languages (APIs?) ?
Bye,
Evanghelos
> PS nice name ;)
:-)
"Evan Nemerson" <evan@coeus-group.com> ha scritto nel messaggio
news:php.general-95032@news.php.net...
> Thats because that query string is like saying:
>
> $ID = 5;
> $ID = 6;
> $ID = 23;
>
> If this is a form that you can't change the ID field names to ID1, ID2,
ID3,
> etc. (which would probably be best) you could try something like: