Passing PHP variable with jQuery -
i need assistance on how transfer value $row[component]
in class1.php page process_class.php jquery using post method.
i did seems doesnt work ,
$('.cuttingcheckbox').change(function() { if (this.checked) { $.post('process_class.php', { comp : $($row[component]).val(), comp_id : $($row[id]).val() }, function(response) { this.setattribute("disabled", true), alert(comp,comp_id); }); } });
does willing me ?
you can save $row[component]
session this:
$_session['row_component'] = $row[component];
and in next page, retrieve it:
$row = $_session['row_component'];
as jonast said (thanks dude), should initiate session first @ top of php file: session_start();
Comments
Post a Comment