1. Engineering
  2. Computer Science
  3. php...

Question: php...

Question details


Part I (Lab) Create a Hello, World! page that says hello to an arbitrary name, provided as a GET parameter. If the parameter is not provided, use World as the name. Use the ucwords) (http://pho.net/manual/en/function.ucwords.pho) function to capitalize the provided name. Create a small form at the bottom of the page to easily supply a name. The form should use the GET method. Part II Create a PHP page which, on a GET request, echoes a provided timestamp, the UTC time and date of the timestamp, and the local time and date of the timestamp. Add a form to the bottom of the page to easily supply the timestamp. Use the function date() (http://oho.net/manual/en/function.date.pho) to format the timestamp into a date string, including the full date, time, and time zone. Use the function date_default_timezone_set() (http://php.net/manual/en/function.date-default-timezone-set.php) to set the timezone to be used by date(), e.g. pass UTC for UTC, EST for Eastern, etc. What happens when the provided timestamp isnt a valid timestamp, for example, Bob? Part IlI Create a web form containing a text area (i.e., <textarea>) and a submit button. Use the POST method to send the contents of the text area to a handler php page. This can be the same php file which displays the form. The page echoes the data provided in the text area to the page. う what happens if you submit valid HTML, for example,くa href-www.google.com></aメ?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution