Page 1 of 1

Include with Parameters

Posted: Thu Oct 22, 2009 2:20 pm
by gth759k
In a particular page I would like to include a file that requires $_GET parameters.

when I go to this sort of url I get what I want.

http://www.example.com/test.php?id=1234567890

I want the url to be like this

http://www.example.com/regular.php

and inside regular.php I need something like this

include('test.php?id=1234567890');

is there a way to do this? Any help would be appreciated. Thanks.

Re: Include with Parameters

Posted: Thu Oct 22, 2009 2:45 pm
by requinix

Code: Select all

$_GET["id"] = "123456790";
include "test.php";