I have these group of checkboxes
upon submit .. i want to echo the chosen checkboxes in another page (pay.php)
for example: if I chose park and wash .. in the pay.php page i want to echo park and wash BUT I only get wash (the last chosen checkbox) so how to make all chosen checkboxes printed??
<form name="input" action="pay.php" method="post">
Services:
<br/>
<input type="checkbox" name="service" value="park" checked>Park Only <br/>
<input type="checkbox" name="service" value="wash">Wash <br/>
<input type="checkbox" name="service" value="Check tires">Check Tires <br/>
<input type="checkbox" name="service" value="Fill oil">Fill Oil <br/>
<input type="checkbox" name="service" value="Check brakes">Check Brakes <br/>
<input type="submit" value="Go to Paying" />
</form>
IN PAY.php:
<?php
//$servicetext=$_POST["service"];
// echo $servicetext;
////THE ARRAY PART////
echo "<table border='0'>
<tr>
<th> //PRINT THE ARRAY HERE </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<tr/>";
?>