Get URL parameter

0

I'm creating a site that has email validation. Thus, when registering, the user receives a welcome email containing a link to activate his registration and only thus can access his User Panel. Thus, when registering, in the database the u_ativo column receives N . By email he receives a link that clicks on the site:

www.nomedosite.com/[email protected]&id=8378472327

When calling this page when the user clicks on the email link, I need to set the 'u_ativo' = 'S' column by taking the URL parameters to see which user is activating the registration. As for the data, I will encrypt and compare. My problem is that I can not get URL parameters, for example, using $id = $_REQUEST['id'] .

    
asked by anonymous 29.04.2016 / 23:32

1 answer

1

Instead of $ _REQUEST use $ _GET or $ _POST depending on the type of request.

    
30.04.2016 / 01:36