Modify name field on your isp form so that is now text field

Assignment Help Programming Languages
Reference no: EM131321012

Lab- Forms, Loops and Strings

Submission Instructions

How

Please submit your lab report to the Lab4_Submission folder in Moodle.

When

Labs are due in 1 week on Feb. 13, 2014

Exercises:

Goals:

- Gain more hands-on with using PHP string functions
- Create and integrate forms with PHP scripts.

Step 1: Name field validation

Modify the Name field on your ISP form so that is now two text fields - one for ‘First Name and one for ‘Last Name'.

Step 2: Email Address

- Add another text box to your form and label it "Email Address".
- Set a size of the text box = 60 characters for the email address.
- Use a PHP function to validate the email address.
- If the email address passes validation, echo it back to the user.

Step 3: Password Fields and Validation

- Add two password fields to your ISP form.
- The first password field should be labeled "Enter Password".
- The second password field should be labeled "Confirm Password".
- Make that when you create the password field that you define it as type = ‘password'.

Step 4: Processing String Tokens in an Address

Add another text box to the form you created for ISP Usage. The label for the text box should be "Address". It should accommodate up to 60 characters. The text string you enter should be in the following format:

1024 Main St., Unit 502, Montpelier, VT02044 (no comma after the state)

Your job is to break the string into "tokens". For example we'd like to be able to store each part of the address in a separate variable or position in an array and print each variable on a separate line like this:

1024 Main St.
Unit 502
Montpelier
VT 02044.

Reference no: EM131321012

Questions Cloud

What is difference in cash flow between the two companies : Depreciation and Cash Flow- Rogers Corporation has a gross profit of $880,000 and $360,000 in depreciation expenses. The Evans Corporation also has $880,000 in gross profit, with $60,000 in depreciation expenses. Selling and administrative expenses i..
What was the value of depreciation expenses : Income Statement- Precision Systems had sales of $820,000, costs of goods of$510,000, selling and administrative expenses of $60,000 and operating profit of $103,000. What was the value of depreciation expenses? Set problem up as partial income state..
Describe how marketing efforts and marketing mix will change : Topic: Target's permanent Layaway Plan, Describe how your marketing efforts and marketing mix will change with each phase in the product life cycle
Advantages of internet-based survey research : 1. What are the advantages of Internet-based survey research over traditional survey research? 2. Conduct an online search for "green awards" to learn about the various awards programs recognizing environmental consciousness and sustainable practi..
Modify name field on your isp form so that is now text field : Modify the Name field on your ISP form so that is now two text fields - one for ‘First Name and one for ‘Last Name'. The second password field should be labeled "Confirm Password".
Discuss how you have planned for your retirement so far : Discuss how you have planned for your retirement so far, whether you are on track to reaching your goals, and what changes you need to make. Are there any specific ideas that will help you reach your goals and if so, discuss.
Competitive intelligence so hot in today : Why is competitive intelligence so hot in today's business environment?
How do we know whether a particular score is an outlier : What is a restricted range, and what effect does it have on correlation coefficients? How would you detect and correct a restricted range?
Promote the independence of the federal reserve : What are the factors that promote the independence of the Federal Reserve? Should the Federal Reserve be independent? Why or why not?

Reviews

Write a Review

Programming Languages Questions & Answers

  Program to calculate state and county sales tax

Write a program that will ask the user to enter the amount of a purchase. The program should then calculate the state and county sales tax.

  Software system to manage records of patients

A software system is to be developed to manage the records of patients who enter a clinic for treatment. The records include records of the all regular patient monitoring.

  Explaining handles clause of sub procedure

You are asked to design a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. What will be Handles clause at the end of sub procedure?

  Define a class rewardcard as an adt

Determine the cost of the two_day_ package represented by the instantiated object, then display the calculated cost also on the console - Define a class RewardCard as an ADT that uses separate files for the interface and the implementation

  Write program to display companys payroll report in list box

Write down the program to display companys payroll report in list box. Program must read each employee's name, hourly rate, and hours worked from file and produce report.

  Necessary vhdl code

Assignment 1:Project Assignment: You are required to design an energy meter based on CPLD (Complex Programmable Logic Device) that will smartly disconnect the supply when sufficient amount of energy units are consumed. The device needs to be programm..

  Modify block to use fewest possible number of instructions

Use the associative and commutative laws to modify the block to use the fewest possible number of instructions, assuming both x and y are live on exit from the block.

  Is it ever correct to create a loop that cannot terminate

When you must satisfy two or more criteria to initiate an event in a program, should you make sure that the second decision is made entirely within the first decision?

  Write a utility that converts dollars to coins

For the program, you will write a utility that converts dollars to coins. It is a simple program that must have the following: Multiple outputs to the screen

  Program to validate pay rate as it is entered

When pay rate is entered, search array for a match. If there is match, continue rest of the calculations. If there is no match, display error message, a list of valid pay rates, and prompt for another pay rate.

  Explaining the situation in program

Which of the following best explains the situation after Line 1 has been executed?

  Wt do you mean by procedural or algorithmic programming

what is procedural or algorithmic programming? what is object-oriented programming? what is the role of code reuse in

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