0

In php how to pass user id in url
In contact page i have a bootstrap model form (User Registration)
Ex:

<form action="register.php?url= <?php echo basename($_SERVER['PHP_SELF']); ?>"  method="POST">
    <input type="text" name="username">
    <button type = "submit" name="user_registration">Submit</button>
</form>

When the submit button hit page goes to register.php?url=contact.php but here i need with id also ex: register.php?url=contact.php?id=4

How can i do that?

brombeer
  • 8,206
  • 5
  • 21
  • 26
Santhosh
  • 1
  • 3

0 Answers0