This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:web_development:forms:get [2022/01/13 15:37] mag created |
en:web_development:forms:get [2023/08/16 09:33] (current) |
||
---|---|---|---|
Line 26: | Line 26: | ||
* In both cases, the link will take the user to our other page ' | * In both cases, the link will take the user to our other page ' | ||
* Each link includes a < | * Each link includes a < | ||
+ | * We've intentionally only used hero names that are only one word long because spaces are slightly more complex. | ||
* Save and upload the code, then open the page and click one of the heroes. | * Save and upload the code, then open the page and click one of the heroes. | ||
* You should see the data corresponding to the hero you chose. | * You should see the data corresponding to the hero you chose. | ||
Line 32: | Line 33: | ||
==== GET ==== | ==== GET ==== | ||
* In PHP, we can obtain this data by ' | * In PHP, we can obtain this data by ' | ||
- | * All data in the url is automatically stored in a global variable | + | * All data in the url is automatically stored in an array called ' |
- | * A global variable | + | * Open ' |
+ | * Add the following code inside your < | ||
+ | < | ||
+ | * This displays text and includes the name you chose in ' | ||
+ | * Save and upload the code, then open ' | ||
+ | * Check that your choice | ||
+ | |||
+ | [[en: |