I'm doing a site and I wanted it so that the person typed in the link javascript would pick up and send the form but he is sending it but when I try to recover it with $ _POST it n retrieves the value that was sent q code I'm using .
<?php echo $_POST['link'] ; ?>
<form name="form" action="" method="POST" id="meuForm" name="meuForm">
<input type="txt" name="link" id="link" class="form-control form-control-lg" placeholder="Link Para Encurtar" onkeydown="myFunction()">
</form>
<script>
function myFunction() {
meuForm.submit();
}
</script>