|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
![]() I need to be able to submit a bunch of list values to PHP. See this page: http://webdeveloper.earthweb.com/repository/javascripts/2002/02/75691/twoselect.html Imagine that I want to send all the items in the left list to PHP. Any help would be gratefully appreciated! Many thanks, Matt ![]() |
|
#2
|
|||
|
|||
|
Code:
<select name="category_name" multiple size="5" style="width=150px" width="150px"> Since your select list allows a user to select more than 1 option, you'll need to rename it as an array: Code:
<select name="category_name[]" ... Notice the extra brackets in the name. |
|
#3
|
||||
|
||||
|
have you tried doing a print_r() on the $_POST and/or $_GET variables to see how the information is passed.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Submitting list values and retrieving them in PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|