• 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: Pass URL into Form Field

Pass URL into Form Field 12 years 2 months ago #21592

  • jeffhoneyager
  • jeffhoneyager's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Thank you received: 8
I am creating a directory of businesses and pre-loading content.

In each directory entry there is a "Claim Listing" link. This link goes to a RSForm form. The form collects info, subscribes them to a newsletter, registers them to Joomla, and goes to PayPal. All working splendidly! :cheer:

I would like to capture the directory entry information (the directory URL where they initially clicked to see the form) and pass this URL to a form field.

Is this possible? Any ideas?

Thanks.
The administrator has disabled public write access.

Pass URL into Form Field 12 years 2 months ago #21594

  • jeffhoneyager
  • jeffhoneyager's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Thank you received: 8
I looked over this post:

www.rsjoomla.com/forum/37-rsform-pro/190...er-submit.html#19007

Then Added:

//<code>
$_SERVER
//</code>

to the default value of a text field in the form.

Now I see: Parse error: syntax error, unexpected $end in /home/domain/public_html/administrator/components/com_rsform/helpers/rsform.php(479) : eval()'d code on line 3

Seems like it is doing something "code-ish" but my Joomla API knowledge is very weak.

Any ideas?
The administrator has disabled public write access.

Pass URL into Form Field 11 years 3 months ago #26423

  • tewebmaster
  • tewebmaster's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
You need to add a semicolon after $_SERVER
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!