I'm creating a PHP form for an RSVP, and I'm trying to declare multiple $_POST to 1 isset variable, but I keep getting errors in my code, this is what I'm trying to do:
$attendance = isset( $_POST['template-contactform-event'] ) ? $_POST['template-contactform-event'] : '';
$guestname1 = isset( $_POST['template-contactform-guestname1'], $_POST['template-contactform-guestname1r'] ) ? $_POST['template-contactform-guestname1'], $_POST['template-contactform-guestname1r'] : '';
So my error is occurring on the second declaration line $guestname1 I think its because of the second coma after the isset, but I'm not sure how I would declare this? The first line ($attendance) is what I'm trying to achieve but with two $_POST for 1 variable.