Ask Question

Menu


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



Buy Template