Jump to content

Recommended Posts

you need to use GET.

 

$id = $_GET['id'];
$nid = $_GET['nid'];
$item = $_GET['item'];

echo $id; //would show 'news'
echo $nid; //would show 'show'
echo $item; //would show '4'.

 

 

??? so there is no way to get the thing in whole, lets say some one loges on and i want them to return to this webpage there on, will i have to create one for everytype of page :\

 

if thats the only way ill design some sort of function anyway peace out and thanks

Link to comment
https://forums.phpfreaks.com/topic/72143-solved-php-code-help/#findComment-363700
Share on other sites

yes you can grab the whole thing using the $_SERVER global variable..

 

if you output it like this:

print_r($_SERVER);

 

you will see all the values it holds...

 

the one you would want is this:

 

$page = $_SERVER['REQUEST_URI'];

Link to comment
https://forums.phpfreaks.com/topic/72143-solved-php-code-help/#findComment-363717
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.