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.
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?
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..
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.
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.