i am quite new to php and was wondering, how it is possible to enter information in the toolbar. Like index.php?type=1 ....
Could someone provide me with a little example? I would be very grateful :bigyello:
Thanks in advance :lol: :bigyello:
Printable View
i am quite new to php and was wondering, how it is possible to enter information in the toolbar. Like index.php?type=1 ....
Could someone provide me with a little example? I would be very grateful :bigyello:
Thanks in advance :lol: :bigyello:
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 :wave:
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?
hidden value fields using the method get?!?!?! i think...
Quote:
Originally Posted by |2eM!x
well theres,
ORPHP Code:<?
switch(@$_GET['page']):
case 'downloads':
echo"Downloads";
break; case 'home':
echo"homepage";
break; default:
echo"home/default";
break;
endswitch;
?>
PHP Code:$id = $_GET["page"];
if (($id == "Home") or ($id == ""))
{
echo"home/default";
}
if (($id == "downloads"))
{
echo"downloads";
}
thanks for all your help :D