<?php
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_POST['Register'])?$_POST['Register']:"" != "")) {
-------------------------------------------------------------------
I just replaced this line:
if (($_SERVER["REQUEST_METHOD"] == "POST")){
---------------------------------------------------------
with this one:
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_POST['Register'])?$_POST['Register']:"" != "")) {
---------------------------------------------------------
When I press submit, the information goes into the db but then I am still on the registration page and the user doesn’t' receive any emails either which means that the user is unable to activate his/her account.
Can you please explain further, make it more clear what will happen if I use just this line:
----------------------------------------------------------------------------------------
if (($_SERVER["REQUEST_METHOD"] == "POST")){
---------------------------------------------------------------------------------------
(Give me an example/scenario)
Also do you have any explanation why when I replace the above code with this one:
----------------------------------------------------------------------------------------------
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_POST['Register'])?$_POST['Register']:"" != "")) {
---------------------------------------------------------------------------
The register will be unable to receive the confirmation email and also will be unable to redirect to the ‘users_ThankYou.php’ page?
Looking forward for your reply