oasis/index.php
2024-12-29 17:58:01 -05:00

29 lines
827 B
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
var_dump($_GET);
var_dump($_POST);
var_dump($_FILES);
?>
<h1>Name is: <?php echo $_GET['name'] ?? 'NOT SET' ?></h1>
<h2>SAPI NAME: <?php echo php_sapi_name() ?></h2>
<h2>Data Posted: <?php echo $_POST['email'] ?? 'NONE' ?></h2>
<h2>REQ URI: <?php echo $_SERVER['REQUEST_URI'] ?? 'NONE' ?></h2>
<h2>UPLOADED FILE NAME: <?php echo $_FILES['logo']['name'] ?? 'NONE' ?></h2>
<form action="/submit-form" method="POST" enctype="multipart/form-data">
<input type="text" name="name" value="Javier" placeholder="enter name"><br />
<input type="text" name="email" value="me@javierfeliz.com" placeholder="enter email">
<input type="file" name="logo">
<button type="submit">submit</button>
</form>
</body>
</html>