View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Sun Nov 03, 2002 8:12 am Post subject: php problem |
|
|
i got a small php issue vary small its beause of my php.ini i think
:?: HELP
http://sxlmedia.dynu.com/gameworld/index2.php
view the page and click a like it keeps showing the same defalt page. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Nov 03, 2002 3:30 pm Post subject: Re: php problem |
|
|
That can mean also that the script contains an error. Can you copy the script your use here so people can see what is the problem with it ? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Guest
|
Posted: Mon Nov 11, 2002 1:48 am Post subject: this is the code i use in the file |
|
|
<?php $default = "news";
if($gw == ""){$gw = $default;}elseif(isset($gw)){$gw = $gw;}
include ("$gw.html"); ?> |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Nov 11, 2002 2:29 am Post subject: Re: this is the code i use in the file |
|
|
Anonymous wrote: | <?php $default = "news";
if($gw == ""){$gw = $default;}elseif(isset($gw)){$gw = $gw;}
include ("$gw.html"); ?> |
New PHP releases changed the way you can access GET or POST variables. You cannot use $gw now but instead you should use $_GET['gw'] .
If you want backward compatibility with the old variables way of naming, please read http://www.aprelium.com/forum/viewtopic.php?t=85 .
Similar topic at http://www.aprelium.com/forum/viewtopic.php?t=274 . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Guest
|
Posted: Mon Nov 11, 2002 4:04 am Post subject: |
|
|
how do i add the html extension now... |
|
Back to top |
|
|
Guest
|
Posted: Mon Nov 11, 2002 7:26 am Post subject: edited thanks people |
|
|
nvm i just edied my code.
how you may ask...
well quite simple.
<?php if ($gw==''){$gw="news";}include $_GET ['gw'].".html";?>
:idea: |
|
Back to top |
|
|
|