R
R
rra012019-04-28 18:20:41
HTML
rra01, 2019-04-28 18:20:41

How to form a variable and pass it to PHPMailer for sending?

Hello.
There is a form sent to the mail using PHPMailer-master:

<form enctype=”multipart/form-data” method=”post” id=”form” action="../zakaz/sendemail.php">
  <table ">
  <caption><h1 ><span>Оформление заказа</span></h1>
  

   <div >
        <input name="p0" class="uk-input" type="text" placeholder="Укажите ваш адрес">
    </div>
  
  </caption>
    <thead>
        <tr >
            <th>Название</th>
            <th>Количество</th>
            <th>Вес/Объём</th>
            <th>Примечание</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td><label name="p1">Название продукта</label</td>
            <td><input name="p2"   placeholder="Укажите количество"></td>
            <td><input name="p3"   placeholder="Объём или вес"></td>
      <td><input name="p4"   placeholder="Примечание"></td>
        </tr>
        <tr>
            <td>Название продукта</td>
            <td><input name="p1"   placeholder="Укажите количество"></td>
            <td><input name="p2" c  placeholder="Объём или вес"></td>
      <td><input name="p3"   placeholder="Примечание"></td>
        </tr>		
    </tbody>
</table>
<?php
$message = ????????????
?>
<button type="submit" >Отправить заказ на почту</button><br>
</form>

As I understand it, it is necessary to form the $message variable and pass it via POST
. How can I do this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question