I tried to find a solution but nothing is working for me, or too complicated.
I'm trying to send a variable from a script in my HTML to my php file.
Here my HTML script
<script type="text/javascript">
function DetectAndServe() {
urlp=[];u=location.search.replace("?","").split("&").forEach(function(d){e=d.split("=");urlp[e[0]]=e[1];})
var redirectlink = "https://www.mywebsite.com/redirect_app?utm_medium=" + urlp.utm_medium + "&utm_source=" + urlp.utm_source + "&utm_campaign=" + urlp.utm_campaign;
}
</script>
What's the easiest way to use the redirectlink variable in my PHP file
urlp.utm_medium,urlp.utm_sourceandurlp.utm_campaignas$_GET['utm_medium'],$_GET['utm_source']and$_GET['utm_campaign']respectively?