|
Posted by Jerry Stuckle on 08/26/06 19:17
John wrote:
> Hello,
>
>
> Sorry if this is posted in the wrong area.
>
>
> I have an html file that has a contact form at the bottom.
>
> I didn't write the html file, but it appears that I'm missing
> something to actually receive the email. I know of several scripts
> that are forms to email, but I'm not sure how to connect it to the
> form..
>
>
> Here is my code.
>
>
>
> form action="">
> <fieldset>
> <fieldset><legend>Contact</legend> <label for="name">Name:</label>
> <input name="name" id="name" class="textbox" value="your name here"
> size="30" type="text" /><br />
>
> <label for="email">Email:</label> <input name="email" id="email"
> class="textbox" value="youremail@wherever.com" size="30" type="text"
> /><br />
>
> <label for="comments">Comments:</label> <textarea name="comments"
> id="comments" class="textbox" rows="8" cols="30">Comments
> here</textarea> <br />
>
> <input class="submitbutton" value="Send Mail;" type="submit" /><br
> />
>
> </fieldset>
>
> </fieldset>
>
> </form>
>
>
>
> Any help would be appreciated.
>
>
>
> Thanks!
You need to have another page (or code in this page) to accept the
parameters, parse and validate them, then create the mail message and
send it to your MTA.
You can do this in PHP or any of a number of different scripting
languages. But if you don't watch it, your script can become a way for
spammers to send their mail - quickly getting you blacklisted and
possibly your hosting account canceled.
Much better to get a complete script to do the work. There are a number
of them available on the net.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|