• 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 to add value to UserEmail

How to add value to UserEmail 11 years 5 months ago #25718

Hi I would add a value (the current page url got from php script) to UserEmail.

My form is published under a lot of page and each page is like a product for me... when customers fill the form and click send I would receive an email that report me also the link of the current page (in this case I can identify which product the customer was visiting..).

So to do that I write this in the script section of my form under formLayout:
function curPageURL() {
 $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;
 
}
echo curPageURL();

and this working well for me...now i would put this value ($pageURL) into UserEmail, or an alternative is filling a value of form depending of this value.

Can someone help me? :D

PS.
Sorry for my English..
The administrator has disabled public write access.

How to add value to UserEmail 11 years 5 months ago #25736

up:D
The administrator has disabled public write access.

How to add value to UserEmail 11 years 5 months ago #25785

pls guyz noone can help me?
The administrator has disabled public write access.

How to add value to UserEmail 11 years 5 months ago #25788

You will have better luck putting this type of request for help into a support ticket. The RSJoomla staff reads the tickets and responds to them. As stated above, they don't "regularly" read the forum posts.

Only a few of the forum members have the kind of programming background that is needed to write the type of code you are looking for. So your best bet is to use Support.
And if possible, please post your solution so others may learn from it.

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