Hi,
What I wanted to do was to have the user to
1.) select a few options on xxx.html with the dictated checkboxes
2.) and the user choice will be transfer to the yyy.php page
2.a) printing/confirming his options on the yyy.php page - with a string of characters minus the checkboxes
I have tried using a lot of methods but the selected choices will not show up on the yyy.php page.
Here's an abstract of what I have done:
for xxx.html ->
<form action="data_choice.php" method="POST">
<input type="checkbox" name="checkbox1"/>
<B>Weight</B><BR/>
Measured to the nearest 0.5kg<BR/><BR/>
</form>
for yyy.php ->
<?php
$checkbox1 ='weight';
if($_POST['checkbox1'] == 1) echo strlen($checkbox1);
?>
or
yyy.php
<?php
$checkbox1 =$_POST['checkbox1'];
if($checkbox1 == 1) print("Weight<br>"; )
?>
Any ideas of what went wrong with my codes?