I’m having a problem getting eform to work with latin1 characters when using multiple "pages". If I create a simple form that sends an email, and enter "Öffentlich", then everything works ok. However, try this:
1. Cut and paste the chunks, snippet and eform call from the first post in this thread.
2. Edit the multiFormFunctions snippet and add the following just before the break under case 3 inside the beforeMailSentFunction:
$log = fopen("/tmp/gdform.log", "a");
fwrite($log, "Name = ".$fields['name']."\n");
I.e. case 3 will look like:
case 3://last form
//from here we go to the report so we need to restore previous values
// into the fields array so they can be used in the report
$fields['name'] = $_SESSION['name'];
$fields['email'] = $_SESSION['email'];
$fields['address'] = $_SESSION['address'];
$fields['town'] = $_SESSION['town'];
$log = fopen("/tmp/gdform.log", "a");
fwrite($log, "Name = ".$fields['name']."\n");
return true; //return now and let eForm do it's thing
3. Submit the form, and enter "Öffentlich" for the name in the first step.
4. Look at /tmp/gdform.log. The "Ö" has been corrupted to a "Ã" like so:
However the weird thing is that the report on the screen in my web browser shows:
So even though it is displaying correctly, the string in the PHP script is not actually correct. It is corrupted.
Any ideas? This one is driving me nuts and I need to be able to support German in my forms.
Andy