Robert Granlund
asked on
PHP If isset forms
Is there a way to check if one of two forms has been submitted. Meaning I want at least one of the forms to have been submitted if info is shown.
<?php
if(isset($_POST['get_quote'])) || if(isset ($_POST['get_empty_quote'])) { DO SOMETHING}
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are submitting the forms to the same action page?
the OR || operator means the if will return true if either of the two conditions is met.(At least one of them)