Include with Parameters


Posted on 16th Feb 2014 07:03 pm by admin

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.

201 Like 20 Dislike
Previous php-forum Next php-forum
Other php-forum

User feedback after MySQL query has been executed
Hi all, I've just registered on PHPFreaks because I've got a question that I simply can't work out b

Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi

Image upload - determine folder
I have an upload script that may be accessed from different directories. Problem is, the script is m

restricting another login once you logout
Hello,

how can I restrict a page from login authenticating against info in a MySQL DB for a s

adding up might be solved tell us cheers.
i think i finally solved this anybody.

last time i was getting the wrong results.

Code

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

calculator
I can't figure out why this code doesn't work. No error messages. Page loads.

Code: <

foreach help.
Hello all,

First time I'm attempting to use a foreach statement and was just wondering if my

Will an XHTML DOCTYPE interfere with my PHP if I'm not experienced enough?
I've read this article here: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/

In a nutshe

Limiting checkboxes?
Hi guys,

I have this code: Code: if(isset($_POST['selected'])) {
foreach($_POST['selec

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash