Topic awaiting preservation: inserting multiple list values in php |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Czech Republic via Bristol UK |
posted 06-03-2007 00:31
ok here is what i am trying to do, i have to create a form where someone can enter a product a link to an image and select which countries its available in. |
Maniac (V) Mad Scientist From: :morF |
posted 06-03-2007 04:11
Do you have a default selection value for your list box? And, just to ask a stupid question: your form *is* submitting via POST, isn't it? code: get = ''; if(isset($_POST['country_id[]'])) { $country_id = $_POST['country_id[]']; get = GetSQLValueString($country_id, "int"); }
|
Paranoid (IV) Inmate From: Czech Republic via Bristol UK |
posted 06-03-2007 06:21
hi adrian, |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-03-2007 13:23
you get an array named $_POST['country_id'] - not a variable named $_POST['country_id[]'],- which can nerver be created by a post request, since php translates the input. |