• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Getting the referer into Admin Email

Getting the referer into Admin Email 14 years 10 months ago #7771

I have looked at all of the posts but can't seem to get this to work.

I have RSForm Pro in a module on every page in my site and would like to record the page the user was on when they filled out the form. Is this possible?
The administrator has disabled public write access.

Re:Getting the referer into Admin Email 14 years 10 months ago #7793

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

You can use a hidden field where you can paste this script in the default value box:
//<code>
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
//</code>

With this script you can capture the current url that the user is when he submits a form.

Regards!
The administrator has disabled public write access.
The following user(s) said Thank You: webcat-solutions

Re:Getting the referer into Admin Email 12 years 2 weeks ago #17224

  • scott0
  • scott0's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
I can't get this wot work in Joomla 2.5. Is there an updated script?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!