-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGet.php
More file actions
24 lines (22 loc) · 820 Bytes
/
Copy pathGet.php
File metadata and controls
24 lines (22 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<body>
<h1>the result</h1>
<?php
$SERVER ="localhost"; $username="root";$password="";$dbname="test";
$conn=mysqli_connect($SERVER,$username,$password,$dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error); }
if(empty($_GET['value']))
echo "no value";
else
{
$value= $_GET['v'];
if ($value == is_integer){
$age = $_GET['age']; }
else {
$name = $_GET['name'] }
echo "SUBMITTED";
}
?>
</body>
</html>