Get and post methods in form submission


Question1. What are the different types of Runtime Errors in PHP?

Question2. What are the differences between GET and POST methods in form submission?  Briefly explain in which case it is more appropriate to use either the GET or the POST method?

Question3. Write appropriate PHP codes that allows you to create a web page that uses a cookie to keep track of how many times a user has viewed the page. The first time a particular user looks at the page, it should print something like "Number of views: 1." The second time the user looks at the page, it should print "Number of views: 2," and so on.

Question3. What PHP code snippet is used to establish a database connection to a MySQL server using the MySQL improved API?

Question4. What are the advantages of using stored procedures, triggers and indexes?

Question5. Briefly outline the importance of the following functions in manipulating MySQL data.

(i) mysqli_fetch_array

(ii) mysqli_num_rows

(iii) mysqli_affected_rows

Question6. Write code snippets to demonstrate how PHP allows you to:

(i) Create, retrieve & delete a Session value

(ii) Perform a redirection to another page

(iii) Make data safe to use in a query by escaping what could be problematic characters

Question7. Write a simple PHP program that dynamically populates a dropdown list on page load with values retrieved from Database db_restaurant from table tbl_dish containing two fields namely dish_ID and dish Name. Clearly state any assumptions you make.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Get and post methods in form submission
Reference No:- TGS05569

Expected delivery within 24 Hours