php problem

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sun Nov 03, 2002 8:12 am    Post subject: php problem Reply with quote

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

PostPosted: Sun Nov 03, 2002 3:30 pm    Post subject: Re: php problem Reply with quote

Anonymous wrote:
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.

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 View user's profile Send private message Send e-mail
Guest






PostPosted: Mon Nov 11, 2002 1:48 am    Post subject: this is the code i use in the file Reply with quote

<?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

PostPosted: Mon Nov 11, 2002 2:29 am    Post subject: Re: this is the code i use in the file Reply with quote

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 View user's profile Send private message Send e-mail
Guest






PostPosted: Mon Nov 11, 2002 4:04 am    Post subject: Reply with quote

how do i add the html extension now...
Back to top
Guest






PostPosted: Mon Nov 11, 2002 7:26 am    Post subject: edited thanks people Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group