|
-
Feb 17th, 2001, 03:47 PM
#1
Thread Starter
Frenzied Member
hi, I am at ground ZERO with cgi/perl/asp/similar stuff
what I am trying to do is to get the user to fill out a survey on my website, and then have the survey be emailed to me. How can I do this?
By The Way, I am using Microsoft Personal Web sever, so I can run all the scripts, I just don’t know how
I have previously downloaded a bunch of cgi/perl scripts, but they don’t make any sense to me
thanks, dimava
NXSupport - Your one-stop source for computer help
-
Feb 17th, 2001, 05:39 PM
#2
PowerPoster
This script helped me greatly, it works great, and helpedme to learn a lot about this in ASP.
http://www.brainjar.com/asp/formmail/
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Feb 19th, 2001, 09:01 AM
#3
Black Cat
Microsoft web servers do not support Perl out of the box, you probably should try ASP first. Also, being able to send mail depends on the installation of a mail component. IIS running on NT Server includes CDONTS for handling email, but PWS does not. You are going to have to install a third-party component in order to be able to send mail (unless you can write your own).
Josh
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 19th, 2001, 02:06 PM
#4
Thread Starter
Frenzied Member
thanks Sail3005, but for some reason i'm too stupid to understand it (well it didn't work for me)
and josh, can you point my in the right direction of a 3rd party software
thanks
NXSupport - Your one-stop source for computer help
-
Feb 20th, 2001, 11:09 AM
#5
Black Cat
Do a search for ASPMail or try looking on ASP sites. I've been using CDONTS as I have IIS running on NT Server at the moment.
Josh
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 27th, 2001, 02:27 AM
#6
why dont you have javascript run this command:
email:[email protected]?subject=farfegnugen?placemessagehere.
My syntax might be a little wrong, since i haven't done this in a while, but basically, if you do this correctly, the user gets a popup message saying that they are sending information yes/no. They click yes, and it gets emailed. Older versions of ie and netscape don't even ask. They just email.
-
Feb 27th, 2001, 02:54 PM
#7
Thread Starter
Frenzied Member
i want them to fill out a form, and have it emailed to me, I dont want them to have the EMAIl window like open
NXSupport - Your one-stop source for computer help
-
Feb 27th, 2001, 03:08 PM
#8
Addicted Member
Does it absolutely have to be email. You can always make a small acess db and dump the info in there. Other than that or the popup email. unless you running nt you wont beable to use cdonts.
-
Feb 27th, 2001, 03:14 PM
#9
Thread Starter
Frenzied Member
NXSupport - Your one-stop source for computer help
-
Feb 27th, 2001, 03:29 PM
#10
Addicted Member
you just need to create an access db with whatever info you want on it in a form and then have the forms action goto this page below. you can call it whatever you want just make sure you put in all the request you need for each field and place it in the same order as the fields in your insert statement. If you need anymore help with this, i can help you more through email tonight. My email is [email protected]. The code below will be an asp page with no html in it. The user will never see this page.
Code:
<%
set cn=server.createobject("adodb.connection")
cn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<path to db>\<db file>;Persist Security Info=False"
cn.Open
set cmd=server.CreateObject("adodb.command")
cmd.ActiveConnection=cn
variable=Request.Form("field name")
'repeat this for all the form fields and use the
'variable as values in the insert below
cmd.CommandText="INSERT INTO <table name> (<fields seperated by commas) values (" + <value1> + ", '" + <value2> + "', '"... + "')"
cmd.Execute
response.redirect("whatever page you want them to go too")
%>
-
Feb 27th, 2001, 09:51 PM
#11
Thread Starter
Frenzied Member
wnca you please tell me what the code for the FORMs on the htm page might be?
and what 'column' do I make in MS access?
thanks
dimava
NXSupport - Your one-stop source for computer help
-
Feb 28th, 2001, 10:19 AM
#12
Addicted Member
Why dont you email me what you need and i'll set it up for you. would be easier and you could see how everything should be setup that way.
-
Feb 28th, 2001, 03:19 PM
#13
Thread Starter
Frenzied Member
sure, thanks a lot!!! whats your email?
NXSupport - Your one-stop source for computer help
-
Feb 28th, 2001, 03:23 PM
#14
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|