Describe two types of looping statements in php, PHP Web Programming

Assignment Help:

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.


Related Discussions:- Describe two types of looping statements in php

Wordpress website creation, Wordpress Website creation I have just finis...

Wordpress Website creation I have just finishing a photoshop design for a merely straight forward HTML website. It has 15 content pages with few photos and graphs. I want to

I desire to build an online directory for local maids, I desire to build an...

I desire to build an Online Directory for local Maids and Cleaners I am seeking to build an online directory for maids and cleaners using Ruby On Rails and Twitter Bootstrap. Bo

Need small php help, Small php help, Need php help I already have some p...

Small php help, Need php help I already have some php files with working code I am seeking someone to modify to get desired results. I will be checking results simultaneously

I am seeking a web developer- frontend as well as backend, Web developer (F...

Web developer (Frontend and Backend) I am seeking a Web Developer- Frontend as well as Backend to create a responsive website very similar to Zomato Your responsibilities-

I need help in posting ads multiple time, I need help in Posting Ads Multip...

I need help in Posting Ads Multiple Times I would like to get certain Ads posted. Multiple times. I have lots of Ads that want to be posted everyday. Desired Skills are

Html headers, These are used to indicate the headings of sections or sub-se...

These are used to indicate the headings of sections or sub-sections in document. Based on the desired size of the text, any of six obtainable levels ( to ) of h

A web application of shopping cart using php, You are required to implement...

You are required to implement a shopping cart web using PHP. The web application should allow the user to view the items in a catalogue, add items to a shopping cart, remove items

We need a magento wysiwyg editor on cmspro extension, We need a Magento WYS...

We need a Magento WYSIWYG Editor on CMSPro Extension I consume the CMSPro extension from MageWorld.com. Content parts use a WYSIWYG editor. But I want to change the WYSIWYG edit

Colspan and rowspan, Now let us see how to deal with ROWSPAN (Row Span) and...

Now let us see how to deal with ROWSPAN (Row Span) and COLSPAN (Column Span). If we desire the cell containing Ajay in Figure to be extended to the next cell as well and make th

Call-back function for wp web scraper in wordpress, Call-back Function for ...

Call-back Function for WP Web Scraper - Wordpress Summary- A call-back function for WP Web Scraper to create wordpress post (custom post type) as well as populate custom taxo

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd