0

My wordpress page URL is like this

https:www.com/thanks-page/?origin_name=Sydney&origin_iata=SYD&destination_name=Ahmedabad&destination_iata=AMD

I need to display SYD and AMD in to the page content like this..

Flights from SYD to AMD...

How can I display those two Param query sting in to the actual wordpress page.

Thanks in advance.

1
  • 1
    Not really a WordPress question, this is basic PHP. You can use $_GET for parameters in the url. Commented Jun 26, 2019 at 3:44

2 Answers 2

-1

Simple, you can use $_GET method.

if(isset($_GET["origin_iata"]) && !empty($_GET["origin_iata"]) && isset($_GET["destination_iata"]) && !empty($_GET["destination_iata"]))
{
       echo "Flights from ".$_GET["origin_iata"]." to ".$_GET["destination_iata"]."...";
}
0

You just use $_GET["origin_iata"] and $_GET["destination_iata"] to get those two Params you need

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.