php - How to show results of a form upon submission -
using wordpress, php, html, css, javascript best method of populating results of form upon submission? have form ddl, radio buttons, etc.
<form> <input type="radio" name="sex" value="male">male<br> <input type="radio" name="sex" value="female">female <input type="checkbox" name="vehicle" value="bike">i have bike<br> <input type="checkbox" name="vehicle" value="car">i have car <input type="submit" value="submit"> </form>
what best way of populating results i.e. "67% of users female" , "30% ride bikes" on same page once submit button triggered?
try along these lines:
script.php ---------- <html> <body> <form method=post action=script.php> form here... </form> <? if($_server["content_length"]>0) { //form submitted script, process form inputs here , display results... } ?> </body> </html>
Comments
Post a Comment