Hi all, I'm here again to ask a little thing.
I'm writing a PHP form that store some data in a MySQL database.
Unfortunatelly today I thought that I'd like to have a multilanguage translation for the data stored in the database.
The usage of the PHP Form is:
from the dropdown list the user can choose from a setted (by me) data, but I'd like that this data could be translated for other people.
I thought something like this, here my PHP Form:
Instead of:Code:<form method="post" enctype="multipart/form-data" action="">
Kind of plants:<br />
<select name="id_plants">
<option value=""></option>
<option value="tree">Trees</option>
<option value="shrub">Shrubs</option>
<option value="bush">Bushes</option></select>
<br />
<input type="submit" name="submit" id="submit" value="Submit">
</form>
put something like:option value="tree"
option value="shrub"
and create a function that knows:option value="1"
option value="2"
1 is tree (and the translation in other languages);
2 is shrub (and the translation in other languages).
I'd like to know from you if there is a fast method to do it and if not a little help for my translation function, just some ideas.
Thank you in advance and sorry if I was not so clear but I'm a little tired.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks