I have a HTML form field $_POST[\"url\"] having some URL strings as the value.
Example values are:
https://example.com/test/1234?email=xyz@test.com
Use $_GET['email'] for parameters in URL.
Use $_POST['email'] for posted data to script.
Or use _$REQUEST for both.
Also, as mentioned, you can use parse_url() function that returns all parts of URL. Use a part called 'query' - there you can find your email parameter. More info: http://php.net/manual/en/function.parse-url.php