Include with Parameters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gth759k
Forum Commoner
Posts: 76
Joined: Mon Jun 15, 2009 3:04 am

Include with Parameters

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Include with Parameters

Post by requinix »

Code: Select all

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