Message from JavaScript discussions

February 2018

— It's like my client they gave me one link, I neeed to grab specif parameters and based on geo location and paramanters I need to redirect to some website

Message permanent page

— 

Ex, if parameter says amazon and us, it will redirect to amazon.com , if it says amazon and india it will redirect to amazon.in

— Is the parameters in the url of GET request ? or in body of POST request ?

— Yup

— Get request

— With php you can do
<?php
$some_var = $_GET['parameter_name'];

if ($some_var == 'us') { header('Location: amazon.com'); }

Message permanent page

— Ya but how that link my client gave will come to this page ?

— Http://127.0.0.1:8000/shopping.com/medium=amazon&date=100218

— Like this link is given

— I know how to get paramaters but how to make communication between this link and logic of getting paramaters ?

Message permanent page

— You do not know the link ?

— Sitebuilding dies https://youtu.be/aI2Hs5WONNw