I am trying to make a call to a js function from within a php function based
on the selected value of an HTML select statement (whew!).
While the server side php program is getting called the variable being
passed is always empty. The following is my select statement from within
my php program which itself falls within a php function:
print "
<select name=\"_stcd\" id=\"_stcd\"
onchange=\"ajaxCallServer('http://".
$_SERVER['SERVER_NAME']."/cnl0d2.php?_selName=_gameid&_stcd=".$_stcd."')
>";The valut of $_stcd SHOULD contain the value of the select item the user
selects. But its always blank.
The select option lines are generated from an array of values immediately
following this line.
As I've been searching, researching, re-reading my php books, javascript
books, etc for two days now, I thought it best to ask someone else.
Any ideas as to why this value is always blank?
Thanks all (my mind is fried!)
Bob