-
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
-
This script helped me greatly, it works great, and helpedme to learn a lot about this in ASP.
http://www.brainjar.com/asp/formmail/
-
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
-
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
-
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
-
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.
-
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
-
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.
-
-
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")
%>
-
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
-
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.
-
sure, thanks a lot!!! whats your email?
-