1.

Solve : .html automated response query?

Answer»

Hi.

When SOMEONE comes on my site and submits any information, I'd like to create an automated email response to that which goes direct to their email address. How would I do this in HTML? Thanks!Im a complete rookie so Im gonna need ur help guys! Thanks in advance.

Ive got this so far;

[emailprotected]">

But it only gives me text box and a submit button. It will send the text to my nominated email address, which is good. But i also want to send an automated response to the viewer's address. how would i do this?

Also, i tried the above code, and when i click submit, it OPENS up the internet connectin wizard. it wants me to set up an email address and email server etc. how can i get it to send an email directly to my (and the viewer's) email address without going through this step of setting up an email server?

THANKS A BILLION PPL!!!You'll need to use PHP for that.

Try this for the PAGE with the form:

Code: [Select]<html>
<head>
<title>Mail</title>
</head>

<body>
<form action="sendmail.php" method="post">
Name: <input type="text" name="name" id="name" /><br />
Email: <input type="text" name="email" id="email" /><br />
<input type="submit" />
</form>
</body>
</html>

sendmail.php:
Code: [Select]<?php

$to=$_REQUEST['email'],"[emailprotected]";
$name=$_REQUEST['name'];

$message="Thanksforusingourform!Thenameyouenteredis:$name.";
$subject="MailForm";

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

?>
thanks for such a quick response.
one more question: can i copy + paste the above php into MS Frontpage? or do I need another program?
you can probably tell im really not familiar with this STUFF so any help would be appreciated.
THANKS!See this video on pasting code into FrontPage. The video is not easy to listen to; the sound quality is fuzzy and the speaker has an accent. But, I think you will find it helpful. How to Copy and Paste HTML into FrontPage.You also need to make sure that PHP is installed on your server and that your server supports the mail() function. You may need to contact whoever hosts your site to find this out.Front Page doesn't support PHP, as it's not Microsoft!But, references can be found saying php can be put it a page developed with FrontPage. One paragraph on http://www.webworksite.com/tipsntricks.shtml says,

"Using PHP with FP - To open .php pages in FrontPage 2000-2002 instead of a text editor, go to 'Tools | OPTIONS | Configure editors' and modify the file association to frontpg.exe. The server you publish to must have PHP enabled. FP 2003 is already set as the default editor for .php pages, along with many other types including .aspx, .xml, .shtml, and many others."




Discussion

No Comment Found