four radio buttons
Each have own data in database
When user make hes choose, data would change automaticlly in that page..
eh.. I hope you understand what I'm after? Hard to explain while english isn't my home language! ;)
I'm already using prototype in my page so, if there is sollution that would be great! But doesn't have to.. I don't know what to look so even if someone knows something similar, could you share link or something so I could go and look.
and finally, in doquery.php you have your code ie.
$pid = $_GET['id'];
$q = mysql_query("SELECT result FROM table WHERE id = '$pid'") or die(mysql_error());
$do = mysql_fetch_array($q);
print("Here is your result:" . $do['result']);
Ok.. I'm happy now when finally got it BUT, now I have different problem.
How can I define that if one of those radio buttons are already checked when user arrive that page, then run that fetchQueryPage function?
Because I have option on different page when user can choose one of those radios.
if (radio.[i].checked == true)
run that function whit that pid
wait while user clicks one of those radios