<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
if(isset($_POST["con"])){
$servername='localhost:82';
$username='root';
$password='';
$database="std";
// الاتصال بالسيرفر
$conn = mysqli_connect(
$servername, $username, $password , $database);
if (!$conn){
die ("not connected :" . mysqli_connect_error());
}
echo "connected";
}
?>
<form method="POST">
<center>
<input type="submit" value="connect" name="con">
</center>
</form>
</body>
</html>