questiona describe the two methods used to


Question:

(a) Describe the two methods used to retrieve information from web forms using PHP.

(b) Explain two different kinds of arrays that PHP uses. Give an example script of each array type.

(c) Write the scripts to do the following in PHP:

(i) create a cookie

(ii) delete a cookie

(d) The form below contains an input text box for a user to enter his name and a group of radio buttons to select his gender.

Prepare the PHP script to print the user's name and a welcome message depending on his gender:

For males - "Sports items on special offer"
For females - "50% discount on handbags"

< form action="user.php" method="POST">
Name: < input type="text" name="name" />

Gender:
< input type="radio" name="gender" value="male" />Male
< input type="radio" name="gender" value="female" />Female
< input type="submit" value="Submit" />
< /form>

(e) Describe two types of looping statements in PHP, and illustrate each statement with an example.

Request for Solution File

Ask an Expert for Answer!!
PHP Web Programming: questiona describe the two methods used to
Reference No:- TGS0373972

Expected delivery within 24 Hours