Please help me with php?

  • Thread starter Thread starter righthere4u
  • Start date Start date
R

righthere4u

Guest
If I insert checkbox or radio input and a word beside it for instance:
<input type="checbox" name="R1"> Trial

How can I make my laptop screen display word "Trial" if I check the checkbox and then I click submit?

Thanks in advance
 
<head>
<script type="javascript" language="javascript">
function say_hi(){
var trial = document.getElementById("CB").value;
document.write(trial);
}
</script>
</head>
<form method="post" action="something.php">
<input type="checkbox" name="CB" id="CB" onclick="say_hi();">
</form>
 
Back
Top