Add two numbers 6 and 7 using PHP
<?php $sum = 6 + 7; echo "The sum of 6 and 7 is: " , $sum; ?>
Add two numbers 6 and 7 using PHP Read More<?php $sum = 6 + 7; echo "The sum of 6 and 7 is: " , $sum; ?>
Add two numbers 6 and 7 using PHP Read More<!DOCTYPE html> <html> <head> <title>Even or odd checker</title> </head> <body> <form method="post"> <label for="number">Enter a number:</label> <input type="text" id="number" name="number"><br><br> <input type="submit" name="submit" value="Check"> </form> <?php if (isset($_POST['submit'])) { $num …
Even or Odd using PHP Read More<html> <head> <title>Find the greatest number</title> </head> <body> <form method="post" > <label for="number1">Enter the first number:</label> <input type="number" id="number1" name="number1"><br><br> <label for="number2">Enter the second number:</label> <input type="number" id="number2" name="number2"><br><br> <input …
Greatest among any two numbers using PHP Read More<html> <body> <form method="POST"> Number 1:<br> <input name="num1"><br> Number 2:<br> <input name="num2"><br> <input type="submit" name="submit"> </form> <?php if(isset($_POST['submit'])) { $a=$_POST['num1']; $b=$_POST['num2']; $c=$a+$b; echo "Sum : ",$c; } ?> </body> </html>
Add any two numbers using PHP Read More<html> <body> <h1> Count vowel</h1> <script> let str = " hello, world!"; let vowelCount = 0; // convert string to lowercase to handle both uppercase and lowercase vowels str = …
count vowel in JavaScript Read More<html> <body> <script> function clickevent() { alert("HELLO WORLD"); } </script> <input type="button" onclick="clickevent()" value="CLICK HERE"> </body> </html> <html> <head> </head> <body> <script > function mouseover() { alert("Wake Up"); …
Events in JavaScript Read More<html> <body> <script> for (var i = 1; i <= 10; i++) { document.write(i + "<br>"); } </script> </body> </html>
Display 1 to 10 in JavaScript Read More<html> <head> <script> function calculate() { var base = document.getElementById("base").value; var exponent = document.getElementById("exponent").value; var result = Math.pow(base, exponent); document.getElementById("output").innerHTML = "The result is " + result; } </script> </head> …
finding power in JavaScript Read More<html> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js"> </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.0/jquery.validate.min.js"> </script> <script> $(document).ready (function () { $("#basic-form").validate (); }); </script> <body> <h4> jQuery Validation Form Example </h4> <form id = "basic-form" action="" method="post"> <p> …
JQuery form validation in JavaScript Read More<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $(document).ready(function(){ $("#hide").click(function(){ $("p").hide(); }); $("#show").click(function(){ $("p").show(); }); }); </script> </head> <body> <p> HELLO WORLD THIS </p> <button id="hide">Hide</button> <button id="show">Show</button> </body> </html>
JQuery simple example in JavaScript Read More