Form action URL
Jan 14, 2013 2:07 pm by Marek Kmiecik
Jan 14, 2013 2:07 pm by Marek Kmiecik
Hello.
How to add current language code /en/ (for example) into form action URL attribute ?
Current is:
<form action="http://www.sample-website.eu/update.php" method="post"></form>
I need action attribute including language /en/:
<form action="http://www.sample-website.eu/en/update.php" method="post"></form>
Re: Form action URL
Jan 14, 2013 2:12 pm by Yana
Jan 14, 2013 2:12 pm by Yana
Hi,
Joomla holds the language in the session of variable glang. You can use JSession::get('glang'); to get the current selected language .
Re: Form action URL
Jan 15, 2013 6:17 am by Marek Kmiecik
Jan 15, 2013 6:17 am by Marek Kmiecik
J have no Joomla. This is a simply HTML / PHP website.
Re: Form action URL
Jan 15, 2013 1:21 pm by Yana
Jan 15, 2013 1:21 pm by Yana
Hi,
Please read this topic : url-language-code-t320.html#:~:text=glang
Re: Form action URL
Jan 16, 2013 9:48 am by Marek Kmiecik
Jan 16, 2013 9:48 am by Marek Kmiecik
Gtranslate script do not support $_POST variables in forms.
SIMILAR TOPICS
Missing Form Label (WCAG) | May 8, 2018 4:04 pm | Replies: 3 | Post by: adam.singer |
Gtranslate Pro in form | Mar 1, 2015 6:40 pm | Replies: 3 | Post by: bitweb |
Form not rendering correct | Jan 24, 2015 5:02 pm | Replies: 1 | Post by: joseph2 |
Our enquiry form doesn't work in other languages | Apr 14, 2014 2:06 pm | Replies: 5 | Post by: rentinthealgarve |
Site translating without reason on form | Feb 19, 2014 11:47 am | Replies: 2 | Post by: jtcreative |