I have a PDF form that submits data into a mysql database with php.
Problem is i want to remove diacritics from all fields (before the data reaches the php script) when i press the submit button. For example i have in the PDF form a field that contains "ă" and in another one "î". When i press the submit button i need a javascript to do the conversion to "a" and "i" before posting data to php...this should all happen inside the PDF form.
I have tryied to replace the chars in php submit script with str_replace, but it is too late to do that since the chars are already compromised from the PDF output.
Any ideas?