Ask Question

Menu


Need a Website Or Web Application Or Any Help In Code As Per Your Budget, Contact Us: +91 9437911966 (Whatsapp)

How to pass parameter with URL PHP


To pass parameter with URL PHP please read see the below example.

<!DOCTYPE html>
<html>
<header>
<style>
button {
    border: 0;
    padding: 0;
    display: inline;
    background: none;
    text-decoration: underline;
    color: blue;
}
button:hover {
    cursor: pointer;
}
</style>
</header>
<body>

<form action="resend-otp.php" method="get">
    <input type="hidden" name="user_id" value="123"/>
    <button>Resend OTP</button>
</form>
</body>
</html>

Output