simbawoomba Posted January 4, 2007 Share Posted January 4, 2007 hi i have a list box which when selected gives different values, such as 1 or 2 ecti also have some arrays in php, what i want to do is select the entry into the array depending on what the value of the list box isi have the following code [code]<select size="10" id="templateList" name="templateList" onchange="returnthevalue();<?php $a = strtoint(templateList.value); echo 'displayTemplate('.$templateArray[$a][1].',MessageTemplate)'; ?> ">;[/code]but this does not work, it is not passing the templateList.value properly please help!!! Link to comment https://forums.phpfreaks.com/topic/32836-how-do-i-pass-the-value-of-a-listbox-to-an-array/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.