Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

PHP Progam Code of Hexadecimal to Binary Conversions

PHP Progam Code of Hexadecimal to Binary Conversions

In this code we will learn ” PHP Program Code of Hexadecimal to Binary Conversions”

code of ” PHP Program Code of Hexadecimal to Binary Conversions”

<html>
<body>
<form method="post">
Enter hexa Value:<br>
<input type="text" name ="num1"><br>
<input type="submit" name="OK"><br>
</form>

<?php
if(isset($_POST['submit'])){
	$hexa=$_POST['num1'];
        echo "The Value after Conversion  <br>";
	$num2= base_convert($hexa,16,2);
	
	
	}?>
<?php
$con=mysqli_connect("localhost","root","conversion2");
if(isset($_POST['OK'])){
$num1=$_post['num1'];
$sql=mysqli_query($con,"insert into conversion2(num,ans) VALUES('$num1','$num2')");
}
?>
</body>
</html>

Output of code of “PHP Progam Code of Hexadecimal to Binary Conversions”

PHP Progam Code of Hexadecimal to Binary Conversions

Fazal Rehman Shamil Click Here to Know More
Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325
Dear Professors and Resarchers!You are welome to Cite these tutorials in your research or slides etc. Please don't forget to mention the reference of website. Copy Paste of text is strcitly forbidden. Images can be reuse because images are protected with watermark.