PHP Redirect Using $GET Parameter

PHP Redirect Using $GET Parameter
  • First step, build your index.html. Then create a file link.php or whatever, and fill in the file with the code below (adjust it to your needs). Example:
<html lang="en" data-bs-theme="dark">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">    
    <title>Invitation</title>    
</head>
<body>
    	<form method="GET" action="link.php">
            <div class="container">
                <div class="border rounded-3 p-3">
                    <h1 class="font-estetik text-center mb-3" style="font-size: 3rem;">Invitation</h1>
                    <input type="hidden" id="idbalasan">
                    <div class="mb-1" id="balasan"></div>
                    <div class="mb-3">
                        <label class="form-label">First Name</label>
                        <input name="name" type="text" class="form-control shadow-sm" id="formnama" placeholder="Required" required>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Middle Name</label>
                        <input name="mname" type="text" class="form-control shadow-sm" id="formnama" placeholder="(Optional)">
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Last Name</label>
                        <input name="lname" type="text" class="form-control shadow-sm" id="formnama" placeholder="Required" required>
                    </div>
                    <div class="d-grid mb-2">
                        <button class="btn btn-primary btn-sm rounded shadow" id="kirim">
                            Send<i class="fa-solid fa-paper-plane ms-1"></i>
                        </button>
                    </div>
                </div>
            </div>
          </form>
</body>
</html>