thx for your help martin
I tried it with
"if ( mail($email_to,$email_betreff,$emailbody)== true ) {
header("Location: http://www.musikenzler.ch/anmeldung/lektionen/form_ok.htm");
}
else {
header("Location: http://www.musikenzler.ch/anmeldung/lektionen/form_fehler.htm");
}"
as I heard that mail() gives back either "true" or "false"... But it doesn't work, there is an error like this: "Warning: Cannot add header information - headers already sent by (output started at /home/sites/site181/web/anmeldung/lektionen/form.php:20) in /home/sites/site181/web/anmeldung/lektionen/form.php on line 379"
how can I solve this problem???
thx for your answer...
if you want to look at the working script, go to: www.musikenzler.ch/anmeldung/lektionen/anmeldung.htm (it's a German site actually). Just press "Absenden" and if you filled out all fields, it'll send an e-mail and you can see the error beneath the two buttons... Feel free to fill out the form, your data isn't saved and the script won't check if your address is right, you just have to fill in something 😉)