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.
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?
|