I am trying to get URL from address bar and store it in a variable.

Anyone know how it may be done as i was looking on php.net and couldn't find any function that grab URL form the address bar.

Look at the _SERVER super global. You can use

$_SERVER['PHP_SELF']

to get your information.

Great that helps a lot...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.