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

Zoho crm php task, Zoho CRM php task I want a coder to code a script tha...

Zoho CRM php task I want a coder to code a script that uses the Zoho CRM API. I want all the methods, accounts, cases, lead and so on. Manageable by a function or class. Desi

Help in google feeds not working in magento site, Help in Google Feeds not ...

Help in Google Feeds not working in Magento Site We are in want of superb magento developer. We have some clients sites that are all made in different platforms like wordpress,m

Adding xml files to html page, Step 1: Select File -> Import XML into Templ...

Step 1: Select File -> Import XML into Template Step 2: Choose the XML file & click Open While an XML file is imported, Dreamweaver merges the XML content in the Template

.Management science an introduction to management sci, identify the feasibl...

identify the feasible region for a set of constraints 3a-2b>0 2a - 1b 1a a,b>0

Prepare a web application using php, Define and implement a software system...

Define and implement a software system that lets an authorized reporter enters information about a (simulated) computer system services incident (kind of incident, date, time of da

I need a help to create wp custom application development, I need a help to...

I need a help to create WP custom application development Looking to create a few approval processes, custom post types, user registration types, reports and analytics in a cust

I want a help in moodle modification, I want a help in Moodle modification ...

I want a help in Moodle modification I need modifications to Moodle to permit for many schools to use the same software, however no school may see each other's teachers or stude

Data link layer - osi model layer, It is responsible for transmitting a gro...

It is responsible for transmitting a group of bits among the adjacent nodes. The group of bits is termed as frame. The network layer passes a data unit to the data link layer and d

Medical data mining, diffierence between ID3 and naive bayes alogrthim

diffierence between ID3 and naive bayes alogrthim

I neeed help in cakephp project, I neeed help in CakePHP Project Good kn...

I neeed help in CakePHP Project Good knowledge of PHP. 1) Hands-on PHP based framework, Cake PHP 2) Demonstrable knowledge of web technologies including HTML, CSS, Javascript, A

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