Forum Moderators: phranque

Message Too Old, No Replies

Processing Forms

         

zxk105

2:31 am on Sep 17, 2004 (gmt 0)

10+ Year Member



I would like to add a feature to my site where the user can fill out some info and then send me the answers. So I have 3 questions regarding processing forms.

1. I found some sample code online done with ASP and I would like to use ASP to do this to get more practice at it. So does my ISP have to support any other piece of software besides ASP in order for me to process forms?

2. I know that one way of doing this is simply emailing all the information to my email account. I have also done some job applications where I filled in the info and I received *.html file as an attachment with all the informations. So my question is what is better to do, place the data directly in the body of the email or create *.html file and then email that as an attachment?

3. If sending the *.html file, how would I do that? Any sample ASP code?

Thanks

raywood

12:52 pm on Sep 17, 2004 (gmt 0)

10+ Year Member



The original ASP does not have any built in email capability. There are lots of third party com objects that people built to enable email in ASP. They have to be on the web server to use them. Check with your ISP. Lots of them have some ASP email capability as part of there offering. There is also CDONTS from Microsoft. You can use it directly in ASP if your ISP makes it available to you. All the email objects provide a way to include an attachment.
ASP.Net has built in email classes. So if your ISP supports .Net you're in luck.

mincklerstraat

10:24 pm on Sep 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



your #2: if you're just sending it to yourself, I'd avoid the hassle of the HTML and just send a plain text message.

kashyap rajput

10:33 am on Sep 18, 2004 (gmt 0)

10+ Year Member



hi,

As raywood said, Check with your ISP for componenets they provide, generally all ISP do provide CDonts.

Its always good idea to keep the email as text rather than html., Just paste the form value to fields and send them to mail, may be one copy to Administrator and another to user (thanks copy) for notification., It always makes good impression

thank you

kashyap

zxk105

1:57 am on Sep 19, 2004 (gmt 0)

10+ Year Member



Ok, this sounds good. I will use the option of just emailing the text to me. I am actually using Brinkster's Educational Package which I don't think support CDonts. So would ASP.Net work then since it was mentioned above? I will search for some sample code online but if anyone knows of a specific site.......please do help out. Thanks to all who helped!

mifi601

2:29 am on Sep 19, 2004 (gmt 0)

10+ Year Member



i'd use php - does a really nice job for forms and most likely is already installed on your server!

raywood

3:27 am on Sep 19, 2004 (gmt 0)

10+ Year Member



I took a quick look at Brinkster's Educational Package. It supports ASP 3.0 and ASP.Net. I didn't see php or Perl on the list. Check with Brinkster to see if they have CDONTS available for ASP 3.0. Or, since they support ASP.Net, you can use it. It would be very easy if you have a development environment like Visual Studio. You can get Web Matrix for free. It's a community supported IDE for .Net.

zxk105

6:29 pm on Sep 20, 2004 (gmt 0)

10+ Year Member



I do have Visual Studio 6.0 so I will use that to create this application. I will do some research online. If I get stuck or can't find anything I will ask for some more pointers. Thanks for now.....