Jump to content

Login SQl and PHP


xRGamingx

Recommended Posts

Hello friends I need help, My friend had created a login panel. And the login panel is all via html and MySQL connection

But my friend had hosted in PHP a library that was responsible for sending a code to the mail of users who register on the server

And I do not have that library to upload it to PHP to be able to walk the login perfectly I would like you to help me with this liberia please,

I will leave the php link that my friend used : http://proyectonc.eshost.com.ar/MtaSendMail/enviar.php?para= ...

UEBsQdn.png?1

 

Link to comment
4 minutes ago, NeXuS™ said:

Try to translate those variables. I have no idea what they mean.

---enviar = submit or Send
---codigo = code
---correo = email
---asunto = affair
---user   = user

function enviar(codigo,correo,asunto,user)
url = "http://proyectonc.eshost.com.ar/MtaSendMail/enviar.php?para="..correo.."&asunto="..asunto.."&mensaje="..codigo
triggerClientEvent(user,"Send",user,url)
end
 

Link to comment

First of all. I'm not going to give you a file which you can just drag&drop in. (The reason behind is, that I want you to improve, and not just copy-paste.)

First of all, you will need to create a .php file.

<?php
?>

Then you'll have to get those variables using $_GET.
Then call mail() (if you have the mail service already setup) with the arguments needed.

If you did it correctly, you'll get an email.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...