Recording the referer page

In this article we are about to show you how you can record the page that user viewing before the submission of the form was made.

In order to achieve this just place the following code in the "Scripts" tab, on "Scripts called on form display" area:

 
echo $_SERVER['HTTP_REFERER'];
 

This can also be used as a default value for a hidden field for example:

 
//<code>
if(isset($_POST['form']['field_name'])){
return $_POST['form']['field_name'];
}else{
return $_SERVER['HTTP_REFERER'];
}
//</code>
 

3 persons found this article helpful.


Was this article helpful?

Yes No
Sorry about that

You Should Also Read

How do I pass a parameter through the URL and how can I catch it ? HOT

Mapping submission info to other database tables HOT

Display information submitted in a different form HOT

How do I display the current URL