• 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: How do I grab fields from querystring

How do I grab fields from querystring 16 years 7 months ago #4825

I want to pass a variable or variables to the form when someone gets to the form from another link.

For example:
/index.php?option=com_forme&fid=1&fromwhere=123455

I want to pass the FROMWHERE variable into the form so that when I receive it, I can see that field.

How do I do this??

Thanks!!
The administrator has disabled public write access.

Re:How do I grab fields from querystring 16 years 4 months ago #6058

  • nigelb
  • nigelb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Put the following code into the default value of the component you need...

//<code>
$myvar = $_GET[\"fromwhere\"];
return $myvar;
//</code>

Important: Keep the //<code> in there as it won't work otherwise.

Good luck!!

Nigel
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!