|
-
Sep 18th, 2005, 03:13 PM
#1
Thread Starter
New Member
-
Sep 18th, 2005, 03:16 PM
#2
Re: noob question
Do you want to be able to grab the info from the site? If so, heres what you do..
lets say this is what you want:
www.mysite.com/mylink.php?user=1583
In your php script you type
echo $_GET['user']
hope that helps
-
Sep 18th, 2005, 03:24 PM
#3
Thread Starter
New Member
Re: noob question
i actually wanted to be able to set a variable when opening my php page. For example
when i clicked on the new thread you made this was shown in the taskbar:
showthread.php?p=2172511#post2172511
This tells the script what to show the user. How can i do that on my script?
-
Sep 18th, 2005, 07:39 PM
#4
Hyperactive Member
Re: noob question
hidden value fields using the method get?!?!?! i think...
-
Sep 19th, 2005, 01:18 AM
#5
Hyperactive Member
Re: noob question
 Originally Posted by |2eM!x
Do you want to be able to grab the info from the site? If so, heres what you do..
lets say this is what you want:
www.mysite.com/mylink.php?user=1583
In your php script you type
echo $_GET['user']
hope that helps 
well theres,
PHP Code:
<?
switch(@$_GET['page']):
case 'downloads':
echo"Downloads";
break; case 'home':
echo"homepage";
break; default:
echo"home/default";
break;
endswitch;
?>
OR
PHP Code:
$id = $_GET["page"];
if (($id == "Home") or ($id == ""))
{
echo"home/default";
}
if (($id == "downloads"))
{
echo"downloads";
}
Last edited by PlaGuE; Sep 19th, 2005 at 01:30 AM.
Without balance, there could only be chaos.
Without chaos, there could be no balance.
I live with karma. Eat with destiny. Dream of life without shackles....
Yet. If life had no consequences, life could not exist, nor could it flourish.
If at first you dont succeed.You're screwed.
C++/Java NOOB.
I aint a professional at PHP, but if i can help i will.
-
Sep 19th, 2005, 03:19 PM
#6
Thread Starter
New Member
Re: noob question
thanks for all your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|