Posted 01 May 2006 - 07:43 PM
*I have a list in a <select></select> with 5 different <option>'s.
**Now, I wish to select 1, 2, or more of those 5 options and have a button next to the box that says "CREATE ARRAY".
***When I click on CREATE ARRAY, I want to create a PHP array onclick, in other words storing those selections into an array. Any ideas?
Posted 01 May 2006 - 07:48 PM
or are you looking for the button to just create PHP code for you to copy and paste somewhere?
Posted 01 May 2006 - 07:56 PM
Posted 01 May 2006 - 08:02 PM
Posted 01 May 2006 - 08:20 PM
Posted 01 May 2006 - 08:31 PM
and put that along with your Create button in a form
set the form to POST or GET to the same page
then at the top of you're page check for that POST or GET value and create an array from that
if(isset($_POST['names'])) $names = $_POST['names'];
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users