I have a selection box, that on select i want to call a function called loadData(), see below: <SELECT NAME="secondChoice" ID="secondChoice" ONCHANGE="loadData();" > Code (markup): And below is a copy of my function: function loadData() { require_once('./mysql_connect.php'); $partno = $_POST['secondChoice']; $query = "SELECT * FROM systemconfig_generic WHERE $partno = partno"; $result = @mysql_query($query); if($result) { echo 'Part No Found: ' .$partno . '<BR>'; } else { echo 'No Part No Found <BR>'; } } PHP: However, when i select an item from the selection box, i keep getting Object Expected error...i have no idea what the means?? Please help.
Is there such a thing as a php function?? If not, how would i go about executing the php stuff on selection change??
OK how about this question: I have a selection box, on change i want to do some php stuff...how would i go about doing this??? thanks for your help in advance.