arnold sumayang
arnold sumayang

Reputation: 1

How do i do this ?page=content&page=profile

how can you do the example: ?page=content&page=profile Using Php or Something else Can you help me every one? I just done all of my projects except this one Pls

Upvotes: 0

Views: 32

Answers (1)

Astro-Otter
Astro-Otter

Reputation: 873

You can use the PHP function http_build_query. However in your example, you have twice "page" query parameter: this is not good, you can't have many times the same parameter. So change it or put both values in one parameter.

$params = ['page' => 'content', 'other_param' => 'profile'];
echo http_build_query($params);

Upvotes: 1

Related Questions