What are the different methods of passing data or
information between two calls of a web page? What are the
advantages/disadvantages of these methods?

Answer Posted / gunjan patel

we are using get, post ,session, cookie, request method for
passing
data. in get method it pass data through url. and post
passes data through hidden variable. and in session we
create session variable these variable store on client
machine and Only SESSION ID stores on server.
and cokkie same as session but cookie store at client
machine.
Request method is same as get method. we use request method
for sending variables using href in <a> tag, or in
Javascript using document.location.href .

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the encryption functions in php?

547


How would you determine the size of a file in php?

575


What is php7?

595


How to access a global variable inside a function?

515


What is the use of htmlspecialchars in php?

505






What is mvc in php?

524


What is difference between Method overriding and overloading in PHP?

532


Explain php split() function.

522


What is variable declaration?

475


Does session expire on closing browser?

473


What is the purpose of using php?

482


How can you retrieve a cookie value?

521


What is the goto statement useful for?

524


Which is incorrect with respect to separating php code and html?

514


How can I display text with a php script?

459