Pagina 1 van 1

contact formulier

Geplaatst: 15 jul 2005, 16:23
door bb
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 ##
##########################################################
*/
?>

Geplaatst: 15 okt 2005, 14:03
door janennel
Stuur je de juiste file aan vanuit de flashfile?

De correcte naam dient namelijk te zijn: st_html_mailform_script.php te zijn. Tenminste als deze zo wordt gebruikt.
In eerste instantie is deze php file namelijk gebruikt in een Flashfile die gemaakt is door Swish en ik weet niet of dit ook werkt via FLA of Flash?

Bij mij werkt dit script wel. Zowel op de site http://www.ademamode.nl, http://www.hoppetossa.nl en http://www.praktijkklijzing.nl geplaatst. En deze werken zoals het moet!

JB - Almari

Geplaatst: 08 jan 2006, 20:59
door farid
Ziet er allemaal mooi uit!

Maar waar kan ik de complete mod vinden?

Alvast bedankt voor de reactie.

groet,

Farid