Reply to Sample "Email Feedback Form" in PHP

Your name:

Reply:


Posted by number1.email on 12/21/05 00:35

Hello,

I have created a very simple program (at least I thought) to create a
feedback system in php.

I basically have two files, and they are "feedback.php", which calls
"sendmail.php". Instead
of it sending an email as I would like, I get the error:

We can't find "http://www.mydbsite.com/sendmail.php"

I've tried changing these two files to index.php and index2.php...but
that doesn't seem to solve the problem.

www.mydbsite.com is my domain. Does anyone know what the problem is?

Thanks...

feedback.php
------------

<html>
<head>
<title>Title of page</title>
</head>
<body>
<form action="sendmail.php" method="post" name="feedback">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>


sendmail.php
------------

<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "yourname@example.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация