Here after the link is worth ?userId for what is it?

 <a href="edit_user.php?userId=<?php echo $row["userId"]; ?>" class="link"> <img alt='Edit' title='Edit' src='images/edit.png' width='15px' height='15px' hspace='10' /> </a> 

Closed due to the fact that the essence of the question is not clear by the participants user207618, cheops , pavel , Streletz , αλεχολυτ 27 Sep '16 at 18:40 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    Well damn and questions. so that the server script gets the user ID through passing it through the URL to the $ _GET ['userId'] variable - vitidev

2 answers 2

php.net - An associative array of parameters passed to the script via a URL.

Example # 1 Example of using $ _GET

 <?php echo 'Привет ' . htmlspecialchars($_GET["name"]) . '!'; ?> 

It is assumed that the user has entered the address http://example.com/?name=Hannes in the browser

The result of running this example will be something like this:

Привет Hannes!

    This is passed to the get parameter userId (user id to be edited)

    Read some article about http protocol, namely about GET parameters. for example , wiki

    • GET parameters are not part of HTTP, for HTTP everything, including the question mark and the parameters themselves, is simply a path. - etki