• 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: Redirect if No Parameter passed

Redirect if No Parameter passed 12 years 2 months ago #22527

  • red2678
  • red2678's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi,

I am trying to figure out if I can redirect the user to a different page if there is no parameter passed in.

I have this code for the default value of a hidden field. If this field is null at page load, I would like to redirect the user to a new page...
//<code>
$sfid_value = JRequest::getVar('id');
return $sfid_value;
//</code>

I tried using a standard IF statment in between the code block, but I just got errors. Is there a certain syntax to preform logic on the var $sfid_value

Thanks!

~Red
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!