Search code examples
phpurlhref

how to send multiple values in href URL in php


<a href="userrequest.php?id=15">

i want to send the datas are id=15&name=svt in same url.Thanks in Advance


Solution

  • Just do what yourself said:

    <a href="userrequest.php?id=15&name=svt">
    

    Edit #1:

    as @Rob said, it is standard to use &amp; instead of &. Then use:

    <a href="userrequest.php?id=15&amp;name=svt">