PHP Self Processing Form
hi
i'm tring adapt form processing script appears in book "php web development macromedia dreamweaver mx 2004" published apress. example in book has simple form containing "comments" field , "email" , "confirm email" fields. script works fine form need has few more fields. ie. "name" , "telephone". how can alter attached script contents of these fields sent along rest of email?
thanks help!
i'm tring adapt form processing script appears in book "php web development macromedia dreamweaver mx 2004" published apress. example in book has simple form containing "comments" field , "email" , "confirm email" fields. script works fine form need has few more fields. ie. "name" , "telephone". how can alter attached script contents of these fields sent along rest of email?
thanks help!
after
if (isset($_post['comments']) && !empty($_post['comments'])) {
$message=strip_tags($_post['comments']);
}
else {
$nomessage = 'you have not entered comments';
}
and using same syntax above add:
if (isset($_post['name']) && !empty($_post['name'])) {
$message .= "\n";
$message .= "name: " . strip_tags($_post['name']);
}
if (isset($_post['telephone']) && !empty($_post['telephone'])) {
$message .= "\n";
$message .= "telephone: " . strip_tags($_post['telephone']);
}
\n newline character emails
gareth
http://www.phploginsuite.co.uk/
php login suite v2 - 34 server behaviors build complete login system.
if (isset($_post['comments']) && !empty($_post['comments'])) {
$message=strip_tags($_post['comments']);
}
else {
$nomessage = 'you have not entered comments';
}
and using same syntax above add:
if (isset($_post['name']) && !empty($_post['name'])) {
$message .= "\n";
$message .= "name: " . strip_tags($_post['name']);
}
if (isset($_post['telephone']) && !empty($_post['telephone'])) {
$message .= "\n";
$message .= "telephone: " . strip_tags($_post['telephone']);
}
\n newline character emails
gareth
http://www.phploginsuite.co.uk/
php login suite v2 - 34 server behaviors build complete login system.
More discussions in Develop server-side applications in Dreamweaver
adobe
Comments
Post a Comment