|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Question about registration welcome mail
I'm organising my welcome registration mail and have an issue or two.
When the user registers they are sent an email via the send_welcome_email function. This function opens the welcome page (a .php?user=fred&pass=frank) and reads it's contents. - this is how I get the contents into a variable to send it though the send routine. My question is this. I want to send the user their login and password. But I use GET to get these variables into the welcome.php file. - That's not really very secure. Is there some other way securing this process? |
|
#2
|
|||
|
|||
|
RE: Question about registration welcome mail
are you encrypting the passwords before they go into the database? If you are, then you could query the database using the record id, and the encrypted password string, instead of username and password....no in the clear usernames and passwords.
|
|
#3
|
||||
|
||||
|
RE: Question about registration welcome mail
Yes they are encrypted going into the database . So if I retrieve later the user just gets the encrypted data
|
|
#4
|
|||
|
|||
|
RE: Question about registration welcome mail
yup, shouldnt make a difference if you are just using it for registration purposes though.
|
|
#5
|
|||
|
|||
|
RE: Question about registration welcome mail
i don't understand why you are opening that php page trough GET?
|
|
#6
|
|||
|
|||
|
RE: RE: Question about registration welcome mail
Quote:
I think its because shes sending the link in an email, or the source.....and thats the only way the variables will be passed. |
|
#7
|
|||||
|
|||||
|
RE: Question about registration welcome mail
I'm not opening the page through get.
Does this help php Code:
|
|
#8
|
|||
|
|||
|
RE: Question about registration welcome mail
yes you are. this line is just like opeining the page trough GET method.
fopen($page, "r"); but i still don't get it why you do it? is that your server where the WELCOME_EMAIL script is? if yes, why don't you just include that script? |
|
#9
|
||||
|
||||
|
RE: Question about registration welcome mail
I share the server.
I'm just trying to get the html into a variable. I don't know how else to approach it. |
|
#10
|
|||||
|
|||||
|
RE: Question about registration welcome mail
i ment is that welcome_email script yours?
if yes, then how about smth like: php Code:
after that, html result of that script will be in $value, and everything else will be just as it was.. (probably ;)) |
|
#11
|
||||
|
||||
|
RE: Question about registration welcome mail
Oh - this was exactly how I had it before - I just thought it would be a better way to do it the other way
Thanks - I'll change everything back |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Question about registration welcome mail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|