Solved

Forms And asp

Posted on 2004-03-22
5
238 Views
Last Modified: 2010-04-25
Hi Im using Dreamweaver Mx and having problems with the forms i have designed. My server is a windows based server and the cgibin used ASP. The forms are online but no info is being forwarded . can I have this info emailed to myself?
0
Comment
Question by:kevindonoghue
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 10650616
What is the Action of your Form?

How you passing Information, which method?

You might need to explain the whole Problem.
0
 
LVL 35

Accepted Solution

by:
mrichmon earned 250 total points
ID: 10651797
You can set up the form to email it to you, but since you have ASP I recommend writing a page that uses the CDONTS email feature of ASP.

Here is a link on how that is done :
http://www.genesis-hosting.com/asp/cdonts.asp
or
http://www.devguru.com/features/tutorials/CDONTS/cdonts.html
or many more can be found by searching google
0
 
LVL 14

Expert Comment

by:Esopo
ID: 10655582
The same mrichmon wrote, with an example of my own. This is the code I use to send me emails through ASP. I have a page with a form pointing to another page containing this code:

****************************
<%
Dim mini, moni, toti, tuti
Dim mail, body, objMail, reply
 
   'The email where you want to send the information (probably yours)
mail = "your@email.com"

     'Get all the form data entered by the user
mini = request.form("mini")
moni = request.form("moni")
toti = request.form("toti")
tuti = request.form("tuti")
 
   'The reply to adress (mainly useless if you are sending the info to yourself)
reply = "Mail to reply <replyto@email.com>"


body = "Suscription information  " & chr(13) & chr(13)
body = body & "This are the weird called variables:" & chr(13)
body = body & "MINI: " & mini & chr(13)
body = body & "MONI: " & moni & chr(13)
'body = body & "TOTI: " & toti & chr(13)
body = body & "TUTI: " & tuti & chr(13)


'Lets send the email
     Set objMail = Server.CreateObject("CDONTS.NewMail")
     objMail.From = reply
     objMail.Subject = "New suscription pending, suscription information"
     objMail.To = mail

     objMail.Body = body
     objMail.Send
     set objMail = nothing

 %>
****************************
This page should also have some "we got your suscription, thank you, now click here" disclaimer.

Just replace the weird called variable names, should be what you need. Still I would read the devguru link mrichmon posted.

Also you might get some errors (might, probably not) while sending the email, if this happens you most likely have a minor security issue, just change some email-related stuff in your server configuration.

Best regards,

Esopo.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question