Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Can we "Mailto" the Register form?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alfred
Senior Member

USA
1527 Posts

Posted - 30 December 2002 :  12:32:12  Show Profile  Visit Alfred's Homepage
Requirement:

  • Give separate option in Register.asp to sign up for club membership
  • Inform me by mail when someone registers


Can we do this:
  • Add a required line to the registration form
  • mail the form to me "on submit"


How easy would that be to do?

Alfred
The Battle Group
CREDO

n8pbm
Junior Member

USA
212 Posts

Posted - 30 December 2002 :  17:27:23  Show Profile  Visit n8pbm's Homepage
I sent you an email about this. It is not an easy thing to do (at least the way I did it). You can look at my registration form to see the changes. http://www.glpuc.org/forum then click on register.

We also use the forum database to create the club membership. Maybe someone else has a quicker way to achieve what you are looking for.

Mike

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 30 December 2002 :  20:22:51  Show Profile  Visit Alfred's Homepage
I didn't get that mail yet, Mike.
You did say that you needed a little more time to write it up.

Looking at your Register window, it's pretty much what I planned.
I don't think it's even necessary to say that "if you want to join the club you have to join the forum as well".
I would just put the option fields for the club in the registration form.

So, that should not be so much trouble, should it?
I already know how to make additional required fields for the form.
The key problem for me is to find out how to have the form mailed to me.
I have my current club application form mailed to me with an "action=mailto" tag.
I figure that something like that could probably be done in addition to the action of sending it to the database.

Could someone of the code wizards help us out with this, please?

Alfred
The Battle Group
CREDO
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 30 December 2002 :  20:46:25  Show Profile  Visit n8pbm's Homepage
Ok I am doing this without testing. My forum does not send the club information until after the email has been verified.

Look for this code in Register.asp - This is around line 821 on my file but I have added a lot of stuff. Look for this

if strEmail = "1" and strRestrictReg = "0" then
				'## E-mails Message to the Author of this Reply.
				strRecipientsName = Request.Form("Name")
				strRecipients = Request.Form("Email")
				strFrom = strSender
				strFromName = strForumTitle
				strsubject = strForumTitle & " Registration "
				strMessage = "Hello " & Request.Form("name") & vbNewline & vbNewline
				strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbNewline & vbNewline
				if strAuthType="db" then
				'################################### E-mail Validation Mod #################################
					if strEmailVal = "1" then
						strMessage = strMessage & "Please click on the link below to complete your registration." & vbNewline & vbNewLine
						strMessage = strMessage & strForumURL & "register.asp?actkey=" & actkey & vbNewline & vbNewline
					else
				'######################################################################################
						strMessage = strMessage & "Password: " & Request.Form("Password") & vbNewline & vbNewline
					end if '<---- E-mail Validation Mod - 1 line #############
				end if
				strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
				strMessage = strMessage & "Happy Posting!"
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
			end if


Add below it this:


			
			if if strEmail = "1" and Request.Form("JOIN")= = 1 then 'Change this to whatever your club field is. here 1 means member wants to join
				strRecipientsName = "Your Name"
				strRecipients = "Youremail@whatever.com"
				strFrom = "Forum ID"
				strFromName = "REGISTRATION"
				strsubject = "Put in subject"
				'sample body
                                strMessage = "Hello Mike"  & vbNewline & vbNewline
				strMessage = strMessage & "The following member wishes to join club: " & vbNewline
				strMessage = strMessage & "Name: " & rsKey("M_FIRSTNAME") & " " & rsKey("M_LASTNAME") & vbNewline
				strMessage = strMessage & "Trailer: " & rsKey("M_TRAILER") & vbNewline 
				strMessage = strMessage & "City: " &rsKey("M_City") & vbNewline
				strMessage = strMessage & "State: " &rsKey("M_State") & vbNewline
				strMessage = strMessage & "Tow Vehicle: " &rsKey("M_TOW") & vbNewline
				strMessage = strMessage & "Username: " & rsKey("M_NAME") & vbNewLine
				strMessage = strMessage & "Email: " & rsKey("M_Email") & vbNewline 
				strMessage = strMessage & "Homepage: " & rsKey("M_Homepage") & vbNewline
			        strMessage = strMessage & "NOTE: The email address has been verified by the forum." & vbNewline & vbNewline
				
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
			end if


This will send you an email if they select yes to whatever your club application is. For example the code above uses a field called join with a yes or no choice: 0 = no and 1 = yes. You will get the email with whatever your information you added the the above code. If you want an email for everyone that registers then do not put in the Request.Form("JOIN")= = 1 part. Again this is untested..

Good Luck.

Mike
http://www.glpuc.org

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 30 December 2002 :  21:48:24  Show Profile  Visit Alfred's Homepage
This is great, thanks Mike.

When you say this is untested - isn't it basically what you use now?
Well, whatever - I am going to test it on my localhost before I implement it in any case.

Alfred
The Battle Group
CREDO
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 30 December 2002 :  23:53:20  Show Profile  Visit n8pbm's Homepage
It is based on what I use now. The only difference is I send the email after the user verifies his email. The above code is sent at the same time the email verification goes out.

So as long as I placed it correctly it should work.

Mike

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 31 December 2002 :  10:11:15  Show Profile  Visit n8pbm's Homepage
Corrected the code. I needed Request.form() instead of the rsKey() commands.


if strEmail = "1" and Request.Form("JOIN") = 1 then 'Change this to whatever your club field is. here 1 means member wants to join
				strRecipientsName = "Your Name"
				strRecipients = "Youremail@whatever.com"
				strFrom = "Forum ID"
				strFromName = "REGISTRATION"
				strsubject = "Put in subject"
				'sample body
                                strMessage = "Hello Mike"  & vbNewline & vbNewline
				strMessage = strMessage & "The following member wishes to join club: " & vbNewline
				strMessage = strMessage & "Name: " & Request.Form("FirstName") & " " & Request.Form("LastName") & vbNewline
				strMessage = strMessage & "Trailer: " & Request.Form("Trailer") & vbNewline 
				strMessage = strMessage & "City: " & Request.Form("City") & vbNewline
				strMessage = strMessage & "State: " & Request.Form("State") & vbNewline
				strMessage = strMessage & "Tow Vehicle: " & Request.Form("TOW") & vbNewline
				strMessage = strMessage & "Username: " & Request.Form("Name") & vbNewLine
				strMessage = strMessage & "Email: " & Request.Form("Email") & vbNewline 
				strMessage = strMessage & "Homepage: " & Request.Form("Homepage") & vbNewline
			        strMessage = strMessage & "NOTE: The email address has been verified by the forum." & vbNewline & vbNewline
				
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
			end if


Mike

Mike
Great Lakes Pop Up Club Camping

Edited by - n8pbm on 01 January 2003 21:23:12
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 01 January 2003 :  18:37:17  Show Profile  Visit Alfred's Homepage
Mike, how come to have 2 "if" and 2 "=" in the first line?

Alfred
The Battle Group
CREDO
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 01 January 2003 :  21:22:45  Show Profile  Visit n8pbm's Homepage
Should only be one. My mistake. Thats what I get for doing it too quickly. I'll correct the above code.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 01 January 2003 :  22:32:56  Show Profile  Visit Alfred's Homepage
Well, even if something looks odd to me - with my knowledge I can never be sure!

Alfred
The Battle Group
CREDO
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.95 seconds. Powered By: Snitz Forums 2000 Version 3.4.07