contact formulier probleem

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
bb
Berichten: 3
Lid geworden op: 15 jul 2005, 16:21

contact formulier probleem

Bericht door bb » 15 jul 2005, 16:24

he mensen
ik ben nieuw met php en heb een contactformuliertje ergens vandaan gehaald die ik met een flashsite wil runnen

het zou heel duidelijk moeten zijn wat ik allemaal moet veranderen in de .php file om de mails naar mijn eigen mailbox te krijgen.
---

maar helaas.. als ik alleen mijn eigen e-mail adres invul op de plek die daar voor bestemd is.. krijg ik geen mailtje

zou iemand mij willen helpen door alle dingen te zeggen waar ik ''iets'' moet invullen om het mailtje naar mijn eigen e-mailaccount te krijgen

dit zou ik heeel erg waarderen,
alvast bedankt

hier is de phpfile:

<?php
/*
##########################################################
## SWiSHmax Contact Form was created by Brian Ayers of Swish-Tutorials.com ##
## Unless a Donation is made for these form files - this copyright should remain intact ##
## Please Link directly to the main site - http://www.swish-tutorials.com ##
## ##
## To Customize this Form -- Please Read the Comments I've Added ! ##
## Be SURE to rename this file to: st_mailform_script.php if you use it ##
##########################################################
*/

// IMPORTANT NOTE: DO NOT change anything that has a $ before it
// Any line that has two slashes in front of it is a comment (and will be ignored by this script)

/*
// In case register globals is off (backwards compatibility)
// If you add additional input text fields - you need to add them here as well
// for example, if you add a text field with a variable "Phone", add:
// $phone = $HTTP_POST_VARS['Phone'];
// Remember -- you would then also need to add them in the 'Remove Slashes' section
// as $phone (for example), and somewhere in the 'msg_body' below
// I have added this example in to the script below to help give you a guide
*/

$telefoon = $HTTP_POST_VARS['Telefoon'];
$woonplaats = $HTTP_POST_VARS['Woonplaats'];
$postcode = $HTTP_POST_VARS['Postcode'];
$adres = $HTTP_POST_VARS['Adres'];
$message = $HTTP_POST_VARS['Message'];
$name = $HTTP_POST_VARS['Name'];
$email = $HTTP_POST_VARS['Email'];
// $phone = $HTTP_POST_VARS['Phone']; // example of an additional input field with a variable "Phone"

// Begin Censors
$message = eregi_replace('*beep*', "flip", $message);
$message = eregi_replace('shit', "crap", $message);
$message = eregi_replace('bitch', "nice lady", $message);
$message = eregi_replace('ass', "butt", $message);
$message = eregi_replace('piss', "pee", $message);
// End Censors

// Remove Slashes Inserted by PHP
$name = stripslashes($name);
$email = stripslashes($email);
$message = stripslashes($message);
$adres = stripslashes($adres);
$postcode = stripslashes($postcode);
$woonplaats = stripslashes($woonplaats);
$telefoon = stripslashes($telefoon);
// $phone = stripslashes($phone); // example of an additional input field

// Start Customizable Email Information
// Change the information in quotes below to fit your needs

$rec_email = "mailing@adema-exclusievemode.nl"; // who do you want to send this email to
$subject = "Mailing Adema Exclusieve Mode Website - (c) Almari webdesign"; // this is the subject line of the email

// End Customizable Email Information

/*
// The Body of the Email message (with HTML formatting)
// NOTE: Notice that any HTML code that would normally have a quotation mark ...
// has a forward slash in front of that quotation mark -- this is important if you add more HTML code
// Don't forget to add extra '$msg_body .='
// for each additional input field you have added to your form
// IMPORTANT NOTE: DO NOT change anything that has a $ before it
*/

// Begin the HTML code - and display the place the form was sent from
$msg_body = "<html><head></head>";
$msg_body = "<font face=\"Verdana\" size=\"2\">";
$msg_body .= "Bericht voor Adema Exclusieve Mode via <a href=\"$SERVER_NAME\">$SERVER_NAME</a>
";
$msg_body .= "<hr width=\"100%\" size=\"1\" color=\"#333333\">
";

// Display the information filled out in the contact form
$msg_body .= "Naam: $name
";
$msg_body .= "E-Mail: <a href=\"mailto:$email\">$email</a>
";
$msg_body .= "Adres: $adres
";
$msg_body .= "Postcode: $postcode
";
$msg_body .= "Woonplaats: $woonplaats
";
$msg_body .= "Telefoonnummer: $telefoon
";
$msg_body .= "Bericht: $message
";
// $msg_body .= "Phone: $phone
"; // an example of an additional input field

// Add a little information about the person who sent this message
$msg_body .= "<hr width=\"100%\" size=\"1\" color=\"#333333\">
";
$msg_body .= "

";
$msg_body .= "Informatie van verstuurder
";
$msg_body .= "<hr width=\"100%\" size=\"1\" color=\"#333333\">
";
$msg_body .= "IP Adres: $REMOTE_ADDR
";
$HostName = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$msg_body .= "Host: $HostName
";
$msg_body .= "User Agent: $HTTP_USER_AGENT
";
$msg_body .= "<hr width=\"100%\" size=\"1\" color=\"#333333\">
";
$msg_body .= "<font size=\"1\">e-mail formulier gemaakt door <a href=\"http://www.almari.nl\">Almari webdesign</a></font>";
$msg_body .= "</font></html>";

// Add Some Extra Header Information to the Mail (necessary for HTML mail)
$header_info = "MIME-Version: 1.0\r\n";
$header_info .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header_info .= "From: ".$name." <".$email.">";

// Now let's take the information above and mail it to the recipient
mail($rec_email, $subject, $msg_body, $header_info);


/*
##########################################################
## Contact Form was created by JH Bos of Almari webdesign ##
## Unless a Donation is made for these form files - this copyright should remain intact ##
## Please Link directly to the main site - http://www.almari.nl ##
##########################################################
*/
?>

Mark
Berichten: 242
Lid geworden op: 31 jan 2003, 11:22
Locatie: Groningen

Bericht door Mark » 16 jul 2005, 02:13

ik zie dubbel :shock:

ik ben gek
Berichten: 1496
Lid geworden op: 25 mei 2005, 14:09

Bericht door ik ben gek » 16 jul 2005, 06:19

$msg_body .= "<hr width=\"100%\" size=\"1\" color=\"#333333\">

dat staat er heel vaak in :?

bb
Berichten: 3
Lid geworden op: 15 jul 2005, 16:21

Bericht door bb » 16 jul 2005, 22:04

hebben jullie misschien een idee wat ik moet veranderen om het script goed te laten werken?
aangezien de meeste hier, heel veel van php weten

alvast bedankt
elke hulp waardeer ik

:bier:

Gesloten