http://us2.php.net/manual/en/faq.html.php
Scroll down to #4 which seems to note a specific set of instructions for using select tags within PHP. I really don't even know what the code they show does and have tried it to an extent without any luck.
Here is my code...
HTML:
Code: Select all
<td>
<select multiple name="news_items" size="5" id="news_item_list">
</select>
</td>Code: Select all
function complete_loadNewsItemList()
{
if ( xmlHttp.readyState == 4 || xmlHttp.readyState == "complete" )
{
if (xmlHttp.responseText == '' )
return;
document.getElementById( "news_item_list" ).innerHTML = xmlHttp.responseText;
alert( xmlHttp.responseText );
}
}Because of this fact, I would only find it complicating to show you the PHP. I have pretty much narrowed it down to a couple of facts.
1) when I do
Code: Select all
alert( document.getElementById( "news_item_list" ).firstChild.nodeType );2) The option tag works when I place the same text that appears in my alert directly into the HTML
3) When I put the id="news_item_list" in the <td> tag parenting the <select> tag and take out the <select> tag and throw the <select> tag in the PHP instead, I simply get the text of what it is I'm trying to display.
What exactly does the PHP site mean when they talk about using an array of vars? It doesn't make logical sense to me.
Thank you for any of your time and help in advance,
Mike Whitfield