Ask a Question related to ASP Database, Design and Development.
-
Aaron [SQL Server MVP] #1
Re: Signup AND Email Conformation
[url]http://www.aspfaq.com/5003[/url] !!!
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
"Athmaus" <Athmaus@discussions.microsoft.com> wrote in message
news:7D654670-14D1-4B16-B684-04146EE5C31D@microsoft.com...the info in there.> Hey!
>
> I have my sign-in information that connects to the database, and depositsonly 1 unique username can be in that database column??)>
> (except, anyone know how can i get verficiation on the username to whereentered. I have used this email bounceback code in the past, but i have>
> But now i need to send them an email cofirmation of the information they
never combined the two before. Any help would be greatly appreciated!Request.Form("lname")>
> Thanks!!!
>
> Here is my code
>
> <%
> Function SendEmail()
> Dim myMail
> Set myMail = CreateObject("CDONTS.NewMail")
> HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL
> HTML = HTML & "<html>"
> HTML = HTML & "<head>"
> HTML = HTML & "<title>Free Update Login Information</title>"
> HTML = HTML & "</head>"
> HTML = HTML & "<center><b>Free Update Login Information</b></center>"
> HTML = HTML & "<br>Dear: " & Request.Form("fname") &this information in a safe place."> HTML = HTML & "<br>Thank you for signing up "
> HTML = HTML & "<br>Here is your login information:"
> HTML = HTML & "<br> <b>User Name: </b>" & Request.Form("username")
> HTML = HTML & "<br> <b>Password: </b>" & Request.Form("password")
> HTML = HTML & "<br><br> Please print this page for your records, and keepInfo=True;User ID=XXX;Initial Catalog=XXX;Data Source=XXX"> HTML = HTML & "</body>"
> HTML = HTML & "</html>"
>
> myMail.From = "testing@abc.com"
> myMail.To = Request.Form("email")
> myMail.Subject = "Login Information"
> myMail.BodyFormat = 0
> myMail.MailFormat = 0
> myMail.Body = HTML
> myMail.Send
> End Function
> %>
>
> <%
> Response.Expires = -1000 'Make sure the browser doesnt cache this page
> Response.Buffer = True 'enables our response.redirect to work
>
> If Request.Form("valuepassed") ="true" Then
> CheckSignUpForm
> Else
> ShowSignUpForm
> End If
>
> Sub CheckSignUpForm
> Dim myconn, blnLoggedIn, first, last, email, order, user, pass
> Set myconn = Server.CreateObject("ADODB.Connection")
> myconn.open = "Provider=SQLOLEDB.1;Password=XXX;Persist Securityusername, pass, site, signup) VALUES('" & order & "', '" & first & "', '" &>
> first = Request.Form("fname")
> last = Request.Form("lname")
> email = Request.Form("email")
> order = Request.Form("order")
> user = Request.Form("username")
> pass = Request.Form("password")
> site = 2
>
>
> information = "INSERT INTO regfreeup(ordernum, firstname, lastname, email,
last & "', '" & email & "', '" & user & "', '" & pass & "', '" & site & "',
'" & Now() & "')"lastname = '" & last & "' , email = '" & email & "' , ordernum = '" & order>
> Set Recordset = myconn.execute(information)
> 'myconn.execute("INSERT INTO regfreeup set firstname = '" & first & "' ,
& "', username = '" & user & "' , pass = '" & pass & "' , site = '" & site &
"' , signup = '" & Now() & "';")> Response.Redirect "http://ps2.ign.com"
>
> myconn.close
> set myconn = nothing
>
> SendEmail()
>
> ShowSignUpForm
> End Sub
> %>
>
> <% Sub ShowSignUpForm %>
> All the form info is help below here...
> <% End Sub %>
Aaron [SQL Server MVP] Guest
-
American Idol Signup!
American Idol Signup! www.radio-stop.com Sign up for American Idol! -
Beta signup
Is it too late to become a beta tester for Vista? If not, how do you sign up? -
Send Draft for Conformation email error
:disgust; All of a sudden when I try to send my drafts for review I get an alert that says Contribute cannot open my email program. I am using MS... -
ASP Email - CDONTS - AttachFile - Getting it embeded in the email
I am unable to get my file attachment in the email => Here is what my code looks like - which is very simple from the documentation that I have... -
http://intranet/signup.php?domain=mydomain returns no values
I tried the following: http://intranet/signup.php?Domain=newdomain.com, and it doesn't seem to return any values In my script I have the following:...



Reply With Quote

