How to send current language with jquery ajax to php script?
For a multilingual website I am using translation files which I have included in the different pages. The different translation files look similar to this:
The first 6, which I use for placeholders in my contact.php (included on the main contact page), are working fine. But the last 3, which I need in in the process_contact_form.php file are not working. I call the processing page true a ajax call:
$name = "name";
$email = "email";
$tel = "telephone";
$sub = "subject";
$mes = "message";
$btn = "send";
$salutation = "Dear";
$message = "
Your message has been successfully sent and we will contact you as soon as possible If you have not received a response from us within 24 hours please call us.";
$signature = "Management & Staff Fan's Restaurant.";
What could be the reason that those last three are not working. Could it be be because process_contact_form.php is included in a file contact.php, which is by it self included as well. Should I store them as global variables and if so how should I do that?
Thank you in advance