Download presentation
Presentation is loading. Please wait.
Published byJohn Glenn Modified over 8 years ago
1
Programming Assignment 3 Add forms in your web page so that visitors can add a comment about your web page – Example: http://my.up.ist.psu.edu/zuz22/comment.php http://my.up.ist.psu.edu/zuz22/comment.php 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 Submission instructions: 1.Submit your.php files to the corresponding Dropbox on ANGEL 2.In the message box, include the URL of your webpage The URL should look like: http://my.up.ist.psu.edu/USERNAME/comment.php IST2101
2
2 http://my.up.ist.psu.edu/zuz22/comment.php
3
Hints Create 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 process_comment.php to process form – Echo name – Use “IF/ELSE” to echo “like” or “do not like” – Echo comment – Echo rating IST2103
4
Advanced Requirement (10 bonus points) Use HTML table to get input fields aligned as shown in the screenshots. IST2104
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.