Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

newbie is a little lost!


  • Please log in to reply

#1
dawndlion

dawndlion

    New Member

  • Member
  • Pip
  • 6 posts
Hello,

I know this is going to seem ridiculously simple to most of you, but I am lost in code land and can't seem to find how to do some tasks.
:tazz:

first I have a registration page, how can I get it to email ME when a new person registers?

second, I am trying to set up a guestbook or really simple forum.
I found some stuff in www.hotscripts.com including www.wizzcomputers.com, it is in asp but unfortunately I think it is all VBscript, and I haven't had much luck translating it to java.

I am working in asp javascript in dreamweaver mx2004. I am just using an access database to house the peoples info.

Can I create a guest book by having a login page with a multiple line message? that hits the database and then have it redirect to the view page? How would I post that info onto the 'view' page?

Am I making sense?

I could use someone's help if you have some info. Thanks!
  • 0

Advertisements


#2
ditto

ditto

    - i pwn n00bs -

  • Member
  • PipPipPipPip
  • 1,260 posts
Yes. Its possible with php. I have seen it done.


maybe if you post some of the code you have so far we can help you further.


thanks,
ditto
  • 0

#3
dawndlion

dawndlion

    New Member

  • Topic Starter
  • Member
  • Pip
  • 6 posts
OH Wonderful!

Thanks Ditto,

But I guess I have a third problem...I am also using IIS not PHP. :tazz:

Regardless, I will paste the automatic email first (which I found on comsoltech):

<html>
<form method=post action=sendmail.asp>
From email: <input type=text name=sender><br>
To email: <input type=text name=receiver><br>
Subject: <input type=text name=subject><br>
Body: <textarea name=body></textarea><br>
<input type=submit>
</form>
</html>


then the "sendmail.asp" needs to be (I think this is VB and I need Java):

set mail=server.CreateObject("CDONTS.NewMail")
mail.From= Request("sender") ' like [email protected]
mail.To = Request("receiver") ' like [email protected]
mail.Subject = Request("subject")
mail.Body = Request("body")
mail.BodyFormat = 0 ' 0 = HTML, 1 = Plain
mail.MailFormat = 1 ' 0 = MIME, 1 = Text
mail.Importance = 1 ' 0 =High, 1 = Medium, 2 = Low
mail.attachFile ("c:\images\mypicture.gif") ' you can also attach files
mail.Send
set mail=nothing

Since I have the form already created I think I just need to add :

form method=post action=sendmail.asp

can I just add that right after the the other form action?
in here somewhere?: <form ACTION="<%=MM_editAction%>" METHOD="POST" name="userinfo" id="userinfo" onSubmit="MM_validateForm('firstname','','R','lastname','','R'


okay, NEXT:
The issue of a guest book.

I have an access database with name, and message field.
I know how to send info to the database with dreamweaver...how do I display info from that database back onto another page? It must be a behavior in dreamweaver...it is a pretty common thing to do is it not?

Thanks again!
Dawndlion
  • 0

#4
dawndlion

dawndlion

    New Member

  • Topic Starter
  • Member
  • Pip
  • 6 posts
Just in case anyone has been watching this topic for a reply I have figured out how to send an automatic email from my registration page.

My troubles were caused by choosing ASP with JavaScript rather than VBScript. Of course it can be done but most people us VB, so all of the help out there seems to be geared towards that.

I still have to add the form fields to the email but this is what I have thus far....

I added this at the top of the page:
referers = Array("www.yourdomainname.com")
mailComp = "ASPMail"
smtpServer = "your web server ie localhost"
fromAddr = "[email protected]"

Then in the javascript after activeConnection.Close();

I put:

var mailObj = Server.CreateObject("Persits.MailSender");
mailObj.From = fromAddr;
mailObj.Host = smtpServer;
mailObj.AddAddress ("[email protected]");
mailObj.Subject = "new registration";
mailObj.Body = "you have a new person registering on your site";
mailObj.IsHTML = true;

mailObj.Send();

That's it. I am still waiting for help on the guestbook/chat forum ;) would love your help if you know what to do.

Cheers! :tazz:
Dawndlion
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP