Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTML FORM Lab Exercise IST210 1. Guideline Add forms in your web page so that visitors can add a comment about your web page Forms should include the.

Similar presentations


Presentation on theme: "HTML FORM Lab Exercise IST210 1. Guideline Add forms in your web page so that visitors can add a comment about your web page Forms should include the."— Presentation transcript:

1 HTML FORM Lab Exercise IST210 1

2 Guideline Add forms in your web page so that visitors can add a comment about your web page Forms should include the following elements: A text field A textarea field A set of radio button A dropdown menu A submit button Write a PHP file to display all data a visitor inputs in a new page after the submit button is clicked Test the input of radio button and print out different messages IST210 2

3 3

4 Get Started IST210 4 Name: comment.php <?php $userName=$_POST["username"]; echo "Hello $userName ! "; ?> process_comment.php

5 Hints Create a page comment.php for form input A text field for name A button for Yes/No A textarea for comment Learn this format by yourself http://www.w3schools.com/tags/tag_textarea.asp A dropdown list for rating Create a page process_comment.php to process form Echo name Use “IF/ELSE” to echo “like” or “do not like” Echo comment Echo rating IST210 5

6 Advanced Requirement (Optional) Think about how to better get input aligned as shown in the screenshots? Hint: use table IST210 6


Download ppt "HTML FORM Lab Exercise IST210 1. Guideline Add forms in your web page so that visitors can add a comment about your web page Forms should include the."

Similar presentations


Ads by Google