Posted by Hendri Kurniawan on 04/28/07 03:44
Jon Slaughter wrote:
> "shotokan99" <soft_devjava@yahoo.com> wrote in message
> news:1177728785.705140.109310@n76g2000hsh.googlegroups.com...
>> hi guys,
>>
>> is it possible to add query string on include? i tried but it didnt
>> work. here's how i did it:
>>
>> <?php
>> .
>> .
>> .
>> include 'mypage.php?id=jen';
>>
>> .
>> ?>
>>
>
> Why do you need to?
>
> just set $id = jen or however it works?
>
> i.e.
>
> $id = jen;
> include 'mypage.php'
>
>
Just building on Jon's comment.
Do this:
$_GET['id'] = 'jen';
include('mypage.php');
Setting $_GET will emulate: mypage.php?id=jen
Hendri Kurniawan
Navigation:
[Reply to this message]
|