[PHP] onchange = $_SESSION['Alarm'] = getelementbyid('alarmReport').value ;

2003-08-26 Thread Mrunal Wagh
hi, I have a SELECT in which I would like to store the variable value in the Session variable of onchange event of the SELECT. I am stuck up with the syntax could u please help. Select name=AlarmReport id = AlarmReport **I want to do this* onchange = $_SESSION['Alarm'] =

Re: [PHP] onchange = $_SESSION['Alarm'] = getelementbyid('alarmReport').value;

2003-08-26 Thread Marek Kilimajer
getelementbyid('AlarmReport').value will not get the value of the selected option. Use this.options[this.selectedIndex].value Session var can be set only on the server, you must post the form to get the value or use some javascript to do it, eg: img = new Image();