Welcome to WebmasterWorld Guest from 34.204.194.190

Forum Moderators: ocean10000

Message Too Old, No Replies

contact form script

for html page but asp hosting

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

Full Member

10+ Year Member

joined:June 17, 2003
posts:208
votes: 0


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
4:26 pm on Apr 18, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:864
votes: 3


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.
4:12 am on Apr 20, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:May 23, 2002
posts:446
votes: 0


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>
=============================
6:33 am on Apr 20, 2010 (gmt 0)

Full Member

10+ Year Member

joined:June 17, 2003
posts:208
votes: 0


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.
7:12 am on Apr 20, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:May 23, 2002
posts:446
votes: 0


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.
10:11 am on Apr 20, 2010 (gmt 0)

Full Member

10+ Year Member

joined:June 17, 2003
posts:208
votes: 0


do you mean something like CDOSYS or CDONTS maybe?
8:38 pm on Apr 20, 2010 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:May 14, 2008
posts: 3272
votes: 19


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members