E
E
Evgeniy2020-04-30 09:49:32
PHP
Evgeniy, 2020-04-30 09:49:32

How to pass value by id in php mail()?

Good afternoon everyone
Please help me solve the problem

There is an application form on the page, it contains a code in which the price is displayed using js: How to transfer this price in a letter?
<span id="price" class="price"></span>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Knyazev, 2020-04-30
@Zheleznov

1. If the form is sent by Ajax, then when sending, take this value and add it to the sent parameters.
2. If the form is sent in a standard way, then add it and also write the value to it using a Java script. <input type="hidden" name="price" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question