Bsc CSIT Semester 5 – Web Technology – Unit 6. Server Side Scripting using PHP
Comprehensive questions and detailed answers for Unit 6. Server Side Scripting using PHP. Perfect for exam preparation and concept clarity.
Create web form for book search catalog. The form should contain a dropdown defining search type, a text box for search keyword, a radio button for download type true or false, now write PHP script to store data from the form into database table and also retrive the results from stored table in a new page.
How can you define variables in PHP? Define any two variable of string types and display their results after concatenation.
How can you define variables in PHP? Define any two variable of string types and display their results after concatenation.
How do you define an Array in PHP? write a PHP script to create a multidimensional array name Product that will contain pcode, pname. and price. Initialize the array with at least three instances. Also, Write an HTML script to display the initialized values of the array in an HTML Table.
How can you define function in PHP? Create a function that will take two integers as argument and will return product of them.
Create web form for book search catalog. The form should contain a dropdown defining search type, a text box for search keyword, a radio button for download type true or false, now write PHP script to store data from the form into database table and also retrive the results from stored table in a new page.
How can you define variables in PHP? Define any two variable of string types and display their results after concatenation.
Write a server side script in PHP to illustrate inserting and selecting values to and from database table. Create required connection using your own assumptions.
Write a PHP program that includes a function that will take two strings as input argument and print concatenation of two strings.
How can you handle session in PHP?
How database connection is created in PHP? Write a PHP program to create a form and insert values in to the database table. The form should contain at least two input fields.
How can you define class and objects in PHP? Write a PHP script to create class and its object.
How can you define array in PHP? Write a PHP function to create an array of type integer and print its elements.
Write a PHP program to create a form. Create an insertdb() method to insert the form vlaues into a database table and display() to display the database table value.
Write a PHP function add that takes two arguments as an input and return their sum.
Define cookie. Write a PHP program to create and retrive a cookie.
Write a PHP program to demonstrate the concept of inheritance.
Write a PHP program to show insertion of multiple data into a database table.
Create a PHP form with form elements. Write a program to perform form validation. Use your own assumptions for the validation.
Sample Questions
How can you define variables in PHP? Define any two variable of string types and display their results after concatenation.
How can you define variables in PHP? Define any two variable of string types and display their results after concatenation.
How do you define an Array in PHP? write a PHP script to create a multidimensional array name Product that will contain pcode, pname. and price. Initialize the array with at least three instances. Als
How can you define function in PHP? Create a function that will take two integers as argument and will return product of them.
And more questions available on this page.