ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

How to send to the user the current page url via mail?

oloccina 17 Feb, 2017
Hello,
I was wondering if it is possible to send to the user the current page url via mail after the form is being submitted?
Any suggestion?
Non-developer here, but I am html savvy and have no fear in copy/paste misterious codes🙂

Thank you
Max_admin 18 Feb, 2017
Hi oloccina,

Please try this code in the email template:
<?php echo \JURI::current(); ?>
best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
oloccina 18 Feb, 2017
Thanks! that works.

It only works if the url where the form is placed is a SEO friendly one,
eg. if the url is
https://mysite.com/index.php?option=com_chronoforms5&chronoform=iscrizione-newsletter-cherry
it just sends the user this url
https://mysite.com/index.php

but it's perfectly fine as I am only going to use this for seo friendly urls.

Thanks again!
Max_admin 18 Feb, 2017
Hi oloccina,

You may try instead:
<?php echo \GCore\Libs\Url::current(); ?>

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com