Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

After registration/cdonts mail and page confirmation 3

Status
Not open for further replies.

btish

Programmer
Aug 7, 2001
23
US
After I have someone register, I'd like to also send them a email confirmation and then have the redirect page also show their new pass and login. Is there a good tutorial out there on this or can someone point me in the right direction.

I have cdonts installed on my server, but I didn't really see a behavior for this in ultradev.

The email would would be using a template I have created. So I believe it is just inserting the the form elements into a template. Does someone have the mail code for this Please?

probably the same thing on the confirmation page. have the confirmation page template just pull the form elements, but I still don't know if I pull the template using an "includes' and just include it on the same page as the registration form?

Any help or direction would be greatly appreciated.

Brandon
 
two versions on the below link, one for jmail the other for cdonts.

insert the form into the database - redirect to page 2.
on page two create a recordset, order by ID descending.

then put the code right below the recordset.

thread770-289067 "Damn the torpedoes, full speed ahead!"

-Adm. James Farragut

Stuart
 
schase's suggestion worked for me greatly. But if you need to read more about it, here you go:



banana.gif
rockband.gif
Banana.gif

 
Thank you Schase and tony,
The cdont mail solution worked beautifully..

On the confirmation page, you mentioned creating a recordset and order it by ID descending.

I know how to create a recordset, but I guess I don't understand how that puts in the most current user/pass?

In other words, what else should I add to my code to my it a ID descending...see my page below.

Or does it automatically just insert the last entries of the user/pass ?

thanks schase and tony, you both have been extremely helpful.

my page:
--------------------------------------------------------------
thank you...a confimration email has just been sent to the email address you provided.



Your login and pass are as follows:

username:{Recordset1.username}

password: {Recordset1.password}


------------------------------------------------------

thanks brandon Brandon Tisherman
Designer/Web Developer
Web Blends
 
First things first,

on your database table - do you have an ID field that is autonumbered?

If you do - then when you create the recordset, in simple view, order by that autonumber field, descending. "Damn the torpedoes, full speed ahead!"

-Adm. James Farragut

Stuart
 
Ok, I have a id field that is autonumbered and I have set it to be 'sorted' in descending order. Now what? Will this now work?


login and pass are as follows:

username:{Recordset1.username}

password: {Recordset1.password}

Or what should I add to the thank you page to bring up the last descended record?


Brandon
Brandon Tisherman
Designer/Web Developer
Web Blends
 
Hey, that worked!!!!!Wooo hoooooo, thanks Stuart...I know I'm easily impressed, you rock. have a great week.
Brandon Brandon Tisherman
Designer/Web Developer
Web Blends
 
That should work perfecto

by putting a recordset on a page right after a record was inserted - then sorting that recordset backwards, it will pull the last record inserted.

Now if you think you will have a ton of peeps signing up at once, I can direct you in perhaps a bit more solid of a solution. But if the chances are slim for two people within the same seconds - you'll be a-ok. "Damn the torpedoes, full speed ahead!"

-Adm. James Farragut

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top