Jump to content

[SOLVED] please help it's probley somthing simple


jeppers

Recommended Posts

hear is my code

 

please have a look and tell me what you think

 

<?php include('corefuncs.php'); 

if (function_exists('nukemagicquotes')) {

nukemagicquotes();

}

// process the email

if (array_key_exists('send', $_POST)) {

$to = '[email protected]';

$subject = 'questions about karisma';

 

//process the $_post variables

$name = $_post['name'];

$email = $_post['email'];

$comments = $_post['comments'];

// build the message

$message = "Name: $name\n\n";

$message .= "Email: $email\n\n";

$message .= "Comments: $comments";

 

// limit length to 70 caraters

$message = wordwrap($message, 70);

 

//send it

$mailsent = mail($to, $subject, $message);

}

?>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Japan Journey<?php if (isset($title)) {echo "&#8212;{$title}";} ?></title>

<link href="journey.css" rel="stylesheet" type="text/css" media="screen" />

</head>

 

<body>

<div id="header">

    <h1>Japan Journey </h1>

</div>

<div id="wrapper">

    <?php include('menu.inc.php'); ?>

    <div id="maincontent">

        <h1>Contact us  </h1>

<?php

if ($_post && !$mailsent) {

?>

<p class="warning">Sorry, there was a problem sending your message please try later </p>

<?php

}

elseif ($_post && $mailsent) {

?>

<p><strong>Yourmessage has been sent. Thank You</strong></p>

<?php } ?>

 

        <p>Please fill in the contact infomation and ask any questing regarding karisma photography.</p>

        <form id="feedback" method="post" action="">

            <p>

                <label for="name">Name:</label>

                <input name="name" id="name" type="text" class="formbox" />

            </p>

            <p>

                <label for="email">Email:</label>

                <input name="email" id="email" type="text" class="formbox" />

            </p>

            <p>

                <label for="comments">Comments:</label>

                <textarea name="comments" id="comments" cols="60" rows="8"></textarea>

            </p>

            <p>

                <input name="send" id="send" type="submit" value="Send message" />

            </p>

        </form>

 

</div>

   

</div>

</body>

</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.