How can I get variables from the url from another page by php? [duplicate]

0

Good afternoon friends of Stackoverflow would like to get two variables from this url: link .

I wish from php to be able to obtain the email and code variables and to try to obtain it from the page that arrives from the address in this case chgpw.php.

Try using $ variable = $ _GET ['email']; But nothing that he listens to me.

    
asked by Tysaic 03.10.2017 в 23:02
source

1 answer

0

It's very simple:

<?php
$email = $_GET['email'];
$code = $_GET['code'];

To perform validations and additional processes, just use the variables created: $ email and $ code

    
answered by 04.10.2017 в 21:12