How to pass the variable from parameter of javascript into PHP... I try whatever I think...
but it's too hard... this is the code.. I pass the text and used it on my $pieces
I don't know what is the right code.
for example I have the onclick like this
<input type="radio" name="selectplaneDepart" id="selectplaneDepart" value="PUNX-69;Cebu;Philippines;2014-02-10 06:00:00;Metro Manila;Philippines;2014-02-10 10:00:00;1200" onclick="writeResultReturn(value); " />
function writeResultReturn(text) {
<?php
$pieces = explode(";", text );
?>
}