S
S
smcopandakun2015-06-20 01:08:52
PHP
smcopandakun, 2015-06-20 01:08:52

How to implement sending a letter to e-mail through the form of another script?

Good day!
I have a billing system script on my site. Here is the code for its form:

<form action="" onsubmit="return bs_pay(this)" name="payform" method="post">
    <div class="bt_title">2. Введите сумму:</div>
    <div class="bt_invoice">
      <div class="bt_invoice-header">
        <div class="bt_invoice-title">
        Пополнить баланс
        </div>
      </div>
      <table width="100%">
        <tr>
          <td valign="middle">Внести на счёт сумму:</td>
          <td style="text-align: right">
            <input type="text" name="bs_summa" class="bs_input" id="bs_summa" size="3" value="{get_summ}" onkeyup="bs_topay()" />
          </td>
        </tr>
        <tr>
          <td colspan="2" style="padding-top: 5px"><button type="submit" name="submit" class="bs_button" style="width: 100%">Оплатить <span id="bs_pay">{get_summ}</span> <span id="bs_pay_currency">{module_valuta}</span></button></td>
        </tr>
      </table>		
            <div class="bs_error_msg" id="bs_error_msg" style="text-align: center; display: none"></div>			
    </div>
       <input type="hidden" name="bs_hash" value="{hash}" />
       <input type="hidden" name="bs_paysys" id="bs_paysys" />	   
   </form>

I need to add a tag here <select>, the value of which will be sent to the e-mail, regardless of the further actions of the script.
I would be very grateful for any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twobomb, 2015-06-20
@twobomb

habrahabr.ru/post/246347
Only letters can end up in the spam section on your mail

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question