Question: 1 . Use PHP to set a cookie named c 1 with a value $value. 2 . Create PHP call to access a stored cookie

1.Use PHP to set a cookie named c1 with a value $value.
2.Create PHP call to access a stored cookie named c1 on the user's computer.
3.Edit the following code to embed the session ID so that it's passed along with every link.
4.Edit the following code to check whether a session variable is set.
if (______(________['myvar']))
{
// do something because the session variable is present
}
5.Type the PHP function that's used to unset all variables to clean up the session ID.
6.Complete the code to add a reference to the jQuery library to your site.
<______ src="//code.jquery.com/jquery-22.3..min.js "/>
7.Create variable named $njQuery that sets it up to run in "no conflict" mode in jQuery.
8.Add the appropriate keyword and punctuation to select a group of elements based on their CSS class.
_____nameElement = $('___name');
9.Complete the following code:
var mInput = $('#first_name');
console.log("The value of the input element with id _________ is: '+___________;
10.Complete the following code in order to serialize the $mobject object.
$sobject =___________(_______);
11.Use PHP code to unserialize $sobj and store the results in $newobj.
12. Write PHP echo statement to find out the user who owns the current script being run.
13. Complete the following code such that it determines when a script was last changed.
echo date('g:i a, j M Y',____________);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!