I have examined various discussions about how to pass php variable in a url but haven’t seen any with the simple situation I’m interested in. Also I would like to be absolutely sure I’m getting an up-to-date solution.
In a digital book, I want to link to mypage2.php and include a variable $video. How do I pass this variable safely, and how do I “detect” $video and its current value of “oil-spill”?
Thank you very much.
Make a link like:
On
mypage2.php, check if the query parameter is in the URL: