Header menu

_________________________________________________________________________________

Friday, 30 August 2013

Send value of checked checkboxes on next page

<html>
    <body>
<?php
if($_POST){

    echo "<pre>";
    print_r($_POST['test']);
    echo "</pre>";
    }
?>
<form action="#" method="post">
<input type="checkbox" name="test[]"  value="Test1">Test1<br>
<input type="checkbox" name="test[]"  value="Test2">Test2 <br>
<input type="checkbox" name="test[]"  value="Test3">Test3<br>
<input type="checkbox" name="test[]"  value="Test4">Test4 <br>
<input type="submit" name="submit">
</form>
<body>
 <html>

No comments:

Post a Comment