J
J
Javid Alimli2019-04-15 13:01:48
PHP
Javid Alimli, 2019-04-15 13:01:48

How to pass many checkbox values ​​to PhpMailer?

There are 4 checkboxes

<input type="checkbox" name="event" value="check1">
<input type="checkbox" name="event" value="check1">
<input type="checkbox" name="event" value="check1">
<input type="checkbox" name="event" value="check1">

how to pass many values ​​to phpmailer. If I just try to add a variable and put it in the email layout, then the last value is passed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
del993788, 2019-04-26
@del993788

The last value is passed, which has name=event. Do event1, event2, event3 and accept in php
$event1 = $_POST['event1'];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question