-1
I need to assign the value of a textarea for a var and to exhibit in a p, I made it very simple using js/jquery but now I need to do in PHP.
$('.sendPDF').on('click', toPDF);
function toPDF() {
var textareaValue = $('.wapf-input').val()
$('.geratedPDF').text(textareaValue)
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<textarea class="wapf-input" ></textarea>
<button class="sendPDF">PDF</button>
<p class="geratedPDF"></p>
Very confusing your question ... what time to do this, why do so, where you are calling PHP, already made some attempt?
– novic