Jump to content

new in php code


wangrin

Recommended Posts

how to write this in php

1)      Create two files named “Show_me_post.php” and “Show_me_get.php”. These files should display the data provided by the user as follows:

Hello <name>
You entered the following text: <display the supplied text>

2)      Expand the form to prompt for the user’s age and the current temperature (Celsius). Expand your PHP to receive and store all the values in appropriately named variables and include in your displayed output the user’s age and current temperature.

3)      Add a section to display true or false indicating if the user is of drinking age (the current drinking age is 21) and if the temperature is below freezing:

You are presently old enough to drink: true

Below Freezing: true
4Calculate and display the temperature in Fahrenheit (to determine the temperature in Fahrenheit take nine-fifths of the degrees in Celsius then add 32

Edited by wangrin
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.