Re: php, links not working.
your meant to code the ?do part, its not just leaving the file there, its fairly easy using array's, look it up
Re: php, links not working.
i dont no php all that well.
soz for bein a noob ;(
i had this working a while ago, i just didnt know wtf was going on now.
Re: php, links not working.
im not sure cant rmbr but i think its
PHP Code:
<?php
$acts = array('downloads');
$act = $_GET['do'];
if($act == 'downloads'){
echo "
<meta http-equiv='REFRESH' content='0;url=http://www.xxxxxxx.com/downloads.php'>
";
};
?>
Re: php, links not working.
sorry, kinda necro-ing but
PHP Code:
<?php
$act = $_GET['do'];
$acts = array('downloads');
if($act == 'downloads'){
echo "
include './downloads.php';
";
};
?>
is better
Re: php, links not working.
PHP Code:
<?php
$act = $_GET['do'];
$down = 'downloads';
if($act == $down){
include ('downloads.php');
}
?>
anyway that should be better and shorter =]
Re: php, links not working.
oh yeah, roflmao ho noob of me, im coding my site now and i was just using an echo so yh xD
Re: php, links not working.
Quote:
Originally Posted by
shortymant
opened up my site, heres the php code to the link:
Code:
<a href="index.php?do=downloads">Downloads</a>
i got a file named downloads.php in the same folder,
hit the link Download, and it dosent go.
Using Mpog ?
rename downloads.php to mod_downloads.php
Re: php, links not working.
Quote:
Originally Posted by
Kreain
oh yeah, roflmao ho noob of me, im coding my site now and i was just using an echo so yh xD
Np <3
Quote:
Originally Posted by
katsumi
Using Mpog ?
rename downloads.php to mod_downloads.php
That is possible, since I never downloaded the free sites I dont know that .
Re: php, links not working.
Quote:
Originally Posted by
Testing-NLG
PHP Code:
<?php
$act = $_GET['do'];
$down = 'downloads';
if($act == $down){
include ('downloads.php');
}
?>
anyway that should be better and shorter =]
Actually.
PHP Code:
<?php
if (isset($_GET['do']) && $_GET['do'] == "downloads") {
include("downloads.php");
}
?>
I don't use variables at all, which is better. Plus I check if the $_GET is set. It's a requirement in PHP > 6.0 I believe.
Re: php, links not working.
Quote:
Originally Posted by
Wizkidje
Actually.
PHP Code:
<?php
if (isset($_GET['do']) && $_GET['do'] == "downloads") {
include("downloads.php");
}
?>
I don't use variables at all, which is better. Plus I check if the $_GET is set. It's a requirement in PHP > 6.0 I believe.
You are right,
anyway I was just editing Kreain his post because he also ended with an after
Re: php, links not working.
as I said, I was using echo alot at the time lol
Re: php, links not working.
Quote:
Originally Posted by
Wizkidje
Actually.
PHP Code:
<?php
if (isset($_GET['do']) && $_GET['do'] == "downloads") {
include("downloads.php");
}
?>
I don't use variables at all, which is better. Plus I check if the $_GET is set. It's a requirement in PHP > 6.0 I believe.
It also works on php 5 i believe
Re: php, links not working.
Quote:
Originally Posted by
Rotana
It also works on php 5 i believe
I thought I saw that somewhere to
Re: php, links not working.
I honestly don't know what i did, but it now does work with the;
Code:
<a href="index.php?do=downloads">Downloads</a>
Rofl. I hate php so much :P