Hallo Wilhelm.
Pruefe, ob in der Variable $_SERVER['HTTP_REFERER'] der Name der Formularseite enthalten ist.
if(ereg('abcdefgh', $_SERVER['HTTP_REFERER']))
Dafür ist aber kein regulärer Ausdruck erforderlich. Ich empfehle daher folgende Variante:
if (isset($_SERVER['HTTP_REFERER']) and [link:http://de2.php.net/manual/en/function.strpos.php@title=strpos]($_SERVER['HTTP_REFERER']', name-der-formularseite') !== false) {
# Mail versenden
} else {
# Fehlerroutine
}
Einen schönen Montag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]