PDA

View Full Version : onchange reload problem



che_anj
Sep 12th, 2007, 02:24 PM
I have made an onchange event on a select box, when I click an item in the select box it calls the reload function..

My problem is, client=8 the value 8 is not constant, it is the number of client that is being clicked from another page..

function reload(form)
{
var val=form.job.options[form.job.options.selectedIndex].value;
self.location='menu.php?click=action2.php&menu=3&client=8&job=' + val;
}

exaple..
clientlist.php
theres a list of clients like

IBM - 2
ABS - 3
CBS - 8

when I click the CBS so the client id is being pass to page where my reload function is present.. so the clientinfo.php gets the value id of CBS which is 8, and the said 8 is also used by the reload function..

tnx.

mic2100
Sep 12th, 2007, 06:44 PM
can u show the code from both your pages so i can better understand?