Forum Moderators: open

Message Too Old, No Replies

contact form script

for html page but asp hosting

         

htdawg

9:25 am on Apr 17, 2010 (gmt 0)

10+ Year Member



Hi,
I have a client who has a site with asp & html pages and i want to add a contact form on one of the html pages but I dont know what type of script to use. I am not sure if some of the scripts. I found will work on an asp hosted site but with static html pages.
Can anyone point me in the right direction?

Thanks

Ocean10000

4:26 pm on Apr 18, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The contact form can be static. But you would need to post it to the asp page so that the contact form details can be processed and emailed to your client.

Most simple contact forms I see, take the posted information and do a simple plan text email. To avoid problems with injection attacks and what not. Also never CC or BCC the submitter of the contact form. This is often used as spam gateways for spammers if you do.

giggle

4:12 am on Apr 20, 2010 (gmt 0)

10+ Year Member



Sounds like you're after the easy route?

You can submit to an email address which means that you don't have to use ASP at all.

===============================
<FORM Action="mailto:(emailaddress)?Subject=Test_Post" METHOD="POST">
mailto: protocol test:
<Br>Subject:
<INPUT name="Subject" value="Test Subject">
<Br>Body:&#xa0;
<TEXTAREA name="Body">
kfdskfdksfkds
</TEXTAREA>
<BR>
<INPUT type="submit" value="Submit">
</FORM>
=============================

htdawg

6:33 am on Apr 20, 2010 (gmt 0)

10+ Year Member



thanks for the replies,
giggle does that script open up the user's default mail client such as outlook or thunderbird ect.. the problem is that alot of people use gmail or other similar and it may not
work for them. since i am not to familiar with asp is there anything like some perl or cgi scripts I can use? like i said they have asp pages & static html and I would like to add a simple contact form on the html pages.

giggle

7:12 am on Apr 20, 2010 (gmt 0)

10+ Year Member



Hi dawg

Yes, it will open up whatever email client they're using. Probably won't work for GMail/Hotmail etc.

The problem with using ASP for email (as far as I know) is that you must have ASPEmail or some other software installed on your server to handle sending the emails via ASP.

Good luck.

htdawg

10:11 am on Apr 20, 2010 (gmt 0)

10+ Year Member



do you mean something like CDOSYS or CDONTS maybe?

dstiles

8:38 pm on Apr 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I would NEVER put an email address in a form! It's absolutely inviting spam from the web site AND will be added to every spam database in the world. Site scrapers just love email addresses on web pages.

Send the form to an ASP page that generates a form that sends you the details via email - hiding the email address in that way means you only get spam from form spammers, not from the world.

In practice I almost never put an email address anywhere on a web site. When I have to because the customer demands it I obscure it to prevent scrapers reading it; sometimes the address is linked to pop up in an email client, other times it's not.

You can use CDO if that's all the web hosting company provide. There is quite a bit of info on the web about it.