Question

In: Computer Science

1. When is it preferable to use the “post” method and when is it preferable to...

1. When is it preferable to use the “post” method and when is it preferable to use the “get” method?

2. What is an “all-in-one” form and when should it be used?

3. When would you use the $_SERVER['SCRIPT_NAME'] autoglobal?

4. What are several functions that are useful in validating form data?

Solutions

Expert Solution

1)POST carries request parameter in the message body which makes it more secure way of transferring data from client to server in http protocol,when you want to make a request to server with some parameter from client has to be passed to server POST is used where as  GET carries request parameter appended in URL string , GET is basically used to fetch data from server i.e client request for some data and server response back with some data

2)"all-in-one" form is used when their are multiple user to do registration in a form  and for all that the single user details are saved in one form , it is usefull when their are multiple user registration record has to saved.

3)$_SERVER['SCRIPT_NAME'] basically returns the path of the current script . It is declare global so it can be accessed regardless of the scope and you can access from any class function or file .

4)Function that are useful in validating form data -

checkdate() - it is used to check date is valid or not

ctype_alnum() - check if value contains numbers and letter

ctype_alpha() - check for value contains Letters only

ctype_digit() - check for value contains number


Related Solutions

When is it preferable to use direct questioning and when is it preferable to use indirect...
When is it preferable to use direct questioning and when is it preferable to use indirect questioning? Discuss.
Problem 1 Why is it preferable to use the DC voltage in the transmission and distribution...
Problem 1 Why is it preferable to use the DC voltage in the transmission and distribution of electrical energy than the AC voltage? Use references
2. The completed contract method of accounting for long-term construction-type contracts is preferable when: Select one:...
2. The completed contract method of accounting for long-term construction-type contracts is preferable when: Select one: a. Estimates of costs to complete and extent of progress toward completion are reasonably dependable. b. The contracts are of a relatively long duration. c. Lack of dependable estimates or inherent hazards cause forecasts to be doubtful d. A contractor is involved in numerous projects. 3. In preparing the adjusting journal entries for Year 4, the accountant for a large local law firm discovered...
1.) Compared to skinfold measurements, BIA is usually preferable when measuring the body composition of athletes....
1.) Compared to skinfold measurements, BIA is usually preferable when measuring the body composition of athletes. True or False 2.) The physical activity guidelines for US adults include muscle strengthening activities.   True or False 3.) Prediction equations programmed into BIA analyzers assume that there are multiple conducting pathways through the body. True or False 4.) Flexibility is a general characteristic (i.e., individuals with good shoulder flexibility typically have good hip, knee, and elbow flexibility); thus, measuring one to three joint...
1. What is the name of the method we use to find optimal solutions when given...
1. What is the name of the method we use to find optimal solutions when given a function and at least one constraint? 2. Give a real-life example of an optimization problem in your academic discipline (a function of several variables with constraints). 3. Write a paragraph about the importance of this topic in science, technology, engineering, and mathematics (STEM) research.
1 A) When making the decision to use column chromatography as a separation method you must...
1 A) When making the decision to use column chromatography as a separation method you must consider the sample size as well as well as its chromatographic behavior (ability to be separated using an appropriate stationary and mobile phase). How does increasing the diameter of your column affect the separation of compounds? How does increasing the column length affect the separation of the compounds
when is it better to use the ABC method over the traditional method? Why would it...
when is it better to use the ABC method over the traditional method? Why would it be better?
1.When is one big file server preferable to several smaller ones? Identify the volume types? You...
1.When is one big file server preferable to several smaller ones? Identify the volume types? You are deciding which file system to use. You need NTFS permission system support. You don’t presently need encryption or compression, but might at a later date. What file system is your best choice? # Note - No plagiarism please
This is for pharmacology. 1. Explain when you would use the Z-Track method of injection. Explain...
This is for pharmacology. 1. Explain when you would use the Z-Track method of injection. Explain how you would administer an injection using the Z-Track method. 2. As a nurse, you will see patients displaying Extrapyramidal Symptoms. Explain Extrapyramidal symptoms. Mr. Smith is given azithromycin 500 mg for one dose and then azithromycin 250 mg daily for the next 5 days and ceftriaxone 1 g IV twice daily. After beginning the IV administration of ceftriaxone Mr. Smith’s heart rate increases...
EMERGENCY PLEASE ........................................ Why is fixed exchange rate system preferable when there is a pressure of...
EMERGENCY PLEASE ........................................ Why is fixed exchange rate system preferable when there is a pressure of depreciation to the local currency and the need of expansionary monetary policy to fight recession?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT