• 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: Referring URL in hidden field

Referring URL in hidden field 12 years 4 months ago #15253

  • benmango
  • benmango's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi there,

I want to insert the referring url to my form page shown in a hidden field. Is it possible to do this?

Thanks in advance,

Ben
The administrator has disabled public write access.

Solution Re: Referring URL in hidden field 12 years 4 months ago #15257

  • benmango
  • benmango's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I solved it using the following code:
$ref = $_SERVER['HTTP_REFERER'];
foreach($fields as $i=>$field){
if( $field->name=='referring' ) $fields[$i]->default_value = $ref;
}
The administrator has disabled public write access.

Re: Solution Re: Referring URL in hidden field 12 years 2 months ago #15909

  • mikebosh
  • mikebosh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hi

Where does this code go

Thanks
Mike
The administrator has disabled public write access.

Re: Referring URL in hidden field 12 years 2 months ago #16173

I would like to know how to implement this as well

Thanks Chris
The administrator has disabled public write access.

Re: Referring URL in hidden field 11 years 10 months ago #17399

www.rsjoomla.com/support/documentation/v...he-referer-page.html

please visit to get solution for your problem
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!