![]() Topic awaiting preservation: inserting multiple list values in php (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Czech Republic via Bristol UK |
![]() 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 |
![]() 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 |
![]() hi adrian, |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() 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. |