create php form, show message depending user choice

Posted by user1056615 on Stack Overflow See other posts from Stack Overflow or by user1056615
Published on 2011-11-20T17:47:40Z Indexed on 2011/11/20 17:50 UTC
Read the original article Hit count: 153

Filed under:
|
|
|

I want to create a php form with checkbox, like this:

< form method="post>

    <input type="checkbox" name="formpractise[]" value="A" /> <br/>
    <br/>
    <input type="checkbox" name="formpractise[]" value="B" /> <br/>
    <br/>
    <input type="checkbox" name="formpractise[]" value="C" />  <br/>
    <br/>
    <input type="checkbox" name="formpractise[]" value="D" /> <br/>
    <br/>
    <input type="checkbox" name="formpractise[]" value="E" /> <br/>
    <br/>
    <input type="checkbox" name="formpractise[]" value="F" /> <br/>
    <br/>
    <input type="submit" name="formsubmit" value="Submit" />
</form>

When the user select checkbox I want to print a message according user choice. Not the choice he made, a message depending his choice.

© Stack Overflow or respective owner

Related posts about php

Related posts about html