Hello,
I am working in one site with multilingual(english and french).
When form is submitted it redirect to Thank you page for each language so how to check this & redirect.
Also i am using Joomla default SEO functionality.
I am using below code for this in autogenerated code,
I want siteurl/en/thank-you.
I am using Joomla 1.5.6 and chronoform - 3.0 J1.5 BETA 1.
Please help me
Thanks in advance
Tejas
I am working in one site with multilingual(english and french).
When form is submitted it redirect to Thank you page for each language so how to check this & redirect.
Also i am using Joomla default SEO functionality.
I am using below code for this in autogenerated code,
<?php
$lang =& JFactory::getLanguage();
switch ( $lang->getName() ) {
case 'French (Fr)':
$url = "fr/thank-you";
break;
case 'English (United Kingdom)':
default:
$url = "en/thank-you";
break;
}
?>
But it redirect to siteurl/formurl/en/thank-you.I want siteurl/en/thank-you.
I am using Joomla 1.5.6 and chronoform - 3.0 J1.5 BETA 1.
Please help me
Thanks in advance
Tejas
Hi dixittejas ,
You seem to be setting the url but not applying it to the ReDirect url. You need one more step in there I think.
Bob
You seem to be setting the url but not applying it to the ReDirect url. You need one more step in there I think.
Bob
You seem to be setting the url but not applying it to the ReDirect url. You need one more step in there I think.
Thanks for reply.
I already put below code also but not paste here.
<?php
$rows[0]->redirecturl = $url;
?>
Tejas
Hi,
make the $url like this:
upgrade to V3.0 stable too!
Regards
Max
make the $url like this:
$url = "http://www.yourdomain.com/en/thank-you";
I mean full URL!upgrade to V3.0 stable too!
Regards
Max
Thank You MAX.
This topic is locked and no more replies can be posted.