I'm trying to get the data by $_POST[''] but i need to get it by id. How can i do that?
I tried $_POST['#id']
I want PHP to receive the data from the element:
<div id="phone">+256785589992</div>
you can use javascript
and a hidden input with php
and submit the form using the input name
<script>
document.querySelector("input-hidden").value = document.querySelector("phone").innerHTML;
</script>