PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

Drupal url current page

July27

The function that displays the url of the current page

request_uri();

To use it in if statement; emplor strpos php function

$url = request_uri();
if (strpos($url, “contact”)) { print “this the contact page”; }

posted under Drupal

Email will not be published

Website example

Your Comment:

 

12,829 spam comments
blocked by
Akismet