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

  What innovation introduced in algol68 is credited to pascal

If the left-hand side (LHS) appears in the right-hand side (RHS) of a rule, it is a(n):

  Design program which models worms behavior

Design a program that models the worms behavior in the following scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple.

  Use the linked stack class to support

Use the Linked stack class to support an application that tracks the status of an online auction. Budding begins at 1(dollars, pounds, euros, or whatever) and proceeds in increments of at least 1

  What happens when a class with parameterized

What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?

  Write a program that reads integers

Write a program that reads integers,finds the largest of them,and counts its occurrences 3 5 2 5 5 5 0;the program finds that the largest is 5 and the occurrence count for 5 is 4.(Hint:Maintain two variables, max and count.max stores the current m..

  Write pseudocode for worm moving toward apple

Worm is moving toward an apple. Each time it moves, worm cuts distance between itself and apple by its own body length until worm is close enough to enter the apple. Give pseudocode for this.

  What programming language did grace hopper invent

What programming language did Grace Hopper invent. What was the name of the network begun in 1969? What does it stand for

  Create application to enter five-digit credit card number

Create an application that allows the user to enter a five-digit credit card number; assume that the fifth digit is the check digit.

  Create xml document to mark up the nutrition facts

Create XML document to mark up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value.

  Write a program that will store 7 integers

Write a program that will store 7 integers (entered by the user) into an array called list1. Next, prompt the user for 5 integers and put them into an array called list2. Now, list all of the numbers that are in BOTH lists by calling a function c..

  Write a script to create a new product category

Write a script to create a new Product Category called ‘Shoes'. This category belongs under the category Clothing. Only ParentProductCategoryID and Name are required.

  Web applications enable interaction between organizations

Web applications enable interaction between organizations and their clients. Find an interesting Web application on the Internet and present a short summary, and then answer the following prompts. 1. Why did you choose this application? 2. What kind ..

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