Hi,
Suppose my website address is example.com which is in English.
Now I have a Spanish version at example.com/es/ directory, but my php contact form is only located at example.com/request/index.php.
I want to use the same php contact form for both sites (English and Spanish). So, when anyone from the English site visits my contact page, they will see all the form contents (name, e-mail, address, message etc.) in English and will receive the automatic reply in English. And when anyone from the Spanish site visits the contact form, they will see everything in Spanish and also receive the automatic reply in Spanish.
For this I do not want to use two separate contact form. I want to use the same contact form. So, how can I do it inside the php form (without calling any function from database)? I just want to use PHP (any variables or functions it's ok, but without using any database). I think I have clarified everything clearly. But if you have any confusion about the final goal, please let me know.