Form action URL

Popular automatic website translation tool

Form action URL

Postby Marek Kmiecik » Mon Jan 14, 2013 6:07 pm

Hello.
How to add current language code /en/ (for example) into form action URL attribute ?
Current is:
Code: Select all
<form action="http://www.sample-website.eu/update.php" method="post"></form>

I need action attribute including language /en/:
Code: Select all
<form action="http://www.sample-website.eu/en/update.php" method="post"></form>
Marek Kmiecik
 
Posts: 5
Joined: Tue Jan 17, 2012 6:22 pm

Re: Form action URL

Postby Yana » Mon Jan 14, 2013 6:12 pm

Hi,
Joomla holds the language in the session of variable glang. You can use JSession::get('glang'); to get the current selected language .
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Form action URL

Postby Marek Kmiecik » Tue Jan 15, 2013 10:17 am

J have no Joomla. This is a simply HTML / PHP website.
Marek Kmiecik
 
Posts: 5
Joined: Tue Jan 17, 2012 6:22 pm

Re: Form action URL

Postby Yana » Tue Jan 15, 2013 5:21 pm

Hi,
Please read this topic : url-language-code-t320.html?hilit=glang
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Form action URL

Postby Marek Kmiecik » Wed Jan 16, 2013 1:48 pm

Gtranslate script do not support $_POST variables in forms.
Marek Kmiecik
 
Posts: 5
Joined: Tue Jan 17, 2012 6:22 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux