Prvious URL ...

Re: Prvious URL ...

by Howard Miller -
Number of replies: 1
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

...and you are generally recommended not to do that sort of thing.

Moodle has a library function...

/**
 * Returns the URL of the HTTP_REFERER, less the querystring portion if required.
 *
 * @param boolean $stripquery if true, also removes the query part of the url.
 * @return string The resulting referer or empty string.
 */
function get_referer($stripquery=true) {
Average of ratings: Useful (1)
In reply to Howard Miller

Re: Prvious URL ...

by Baptiste Lhoste -

Hi,

Thanks for your answers.

The function get_referer did the work.

Best regards,

Baptiste Lhoste