need function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dujed
Forum Newbie
Posts: 9
Joined: Thu Mar 30, 2006 6:49 am

need function

Post by dujed »

I have this URL address in address bar:
http://localhost/mk2000_php/scan2.php?I ... 1111111111
Now I need php function that fetch ItemNum. I tray with:
$thispage = $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];
but this return only http://localhost/mk2000_php/scan2.php

thanks[/b]
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

to get just the item num?

Code: Select all

echo $_GET['ItemNum'];
to get the entire path?
use $_SERVER['QUERY_STRING'] in addition to what you have
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply