Skip to content
Advertisement

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

Advertisement

Answer

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);
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement