I want to read out a url paramater in PHP and during development I host the app localy with the VS Code extension Live Server (Five Server) and the php.exe i defined for Five Server is the php.exe from the official PHP website.
I open the app in the browser with: http://127.0.0.1:5500/index.php?variable=3
And I see this: Warning: Undefined array key “variable” in index.php on line 3
Here is my code:
New contributor
HannesScript is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.