| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 function run(){ | 4 function run(){ |
| 5 // Reading the Cooikes using PHP | 5 // Reading the Cooikes using PHP |
| 6 var cookie = "<?php if (isset($_COOKIE['setArraycookie'])) { | 6 var cookie = "<?php if (isset($_COOKIE['setArraycookie'])) { |
| 7 foreach ($_COOKIE['setArraycookie'] as $name =>
$value) { | 7 foreach ($_COOKIE['setArraycookie'] as $name =>
$value) { |
| 8 $name = htmlspecialchars($name); | 8 $name = htmlspecialchars($name); |
| 9 $value = htmlspecialchars($value); | 9 $value = htmlspecialchars($value); |
| 10 echo "$name : $value"; | 10 echo "$name : $value"; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 </script> | 25 </script> |
| 26 </head> | 26 </head> |
| 27 <body onload="run()"> | 27 <body onload="run()"> |
| 28 <p>This test case to set a Array of Cookie size of 3 and check if it's been corr
ectly set and in order.<br />If the Test case was successful, Then it should pri
nt Passed below!! </p><br/> | 28 <p>This test case to set a Array of Cookie size of 3 and check if it's been corr
ectly set and in order.<br />If the Test case was successful, Then it should pri
nt Passed below!! </p><br/> |
| 29 <div id="test"> | 29 <div id="test"> |
| 30 Not Working!! | 30 Not Working!! |
| 31 </div> | 31 </div> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| 34 | 34 |
| OLD | NEW |