Dark & Light Mode


  1.  <html>
  2.      <head>
  3.         <meta name="color-scheme" content="light">
  4.     </head>
  5. </html>
  6. <body><br><br><br>
  7.      <h1>Dark & Light Mode </h1>
  8.     <select id="ab"  onchange="change()">
  9.        <div > <option value="light">Light</option>
  10.         <option value="dark">Dark</option></div>
  11.     </select>

  12. </body>
  13. </html>
  14. <script>
  15.     function change()
  16.     {
  17.         const ab= document.getElementById("ab").value;
  18.         document.getElementsByTagName("meta")[0].content = ab;
  19.     }
  20. </script>

Difference Between POST and GATE Methods

Difference Between POST and GATE method:


  • GATE method is a Unsecure while POST method is Secure.

  • GATE method is not secure because that can pass inside a URL . POST method is secure because That can pass   inside  background.

  • Range of GATE method is 255 character in URL, While Unlimited Range of POST method.

  • Accessing GET method using $_GET[ ] Server Variable. Assessing POST method using $_POST[ ] Server Variable.