Page 1 of 1

need function

Posted: Fri Mar 31, 2006 1:48 am
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]

Posted: Fri Mar 31, 2006 1:53 am
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