mardi 8 août 2017

Joining two php requests into one

THank you for any help. How do I add another condition to this same line. I have 2 requests that I need to join aka I have this

 if (!@$_REQUEST['urEmail']) { $errorsAndAlerts .= "No email entered!<br/>\n"; }

But i need to also add this to it

 if (!@$_REQUEST['g-recaptcha-response'])

I have tried

if (!@$_REQUEST['urEmail']) || (!@$_REQUEST['g-recaptcha-response']) { $errorsAndAlerts .= "No email entered!<br/>\n"; }

and this

if (!@$_REQUEST['urEmail']) && (!@$_REQUEST['g-recaptcha-response']) { $errorsAndAlerts .= "No email entered!<br/>\n"; }

But it neighter worked. I am grateful for any help.

thank you

Aucun commentaire:

Enregistrer un commentaire