I have this html which collects data from a post that is done in a .php before
<input type="text" class="form-control" name="div" value="<?php $division = $_POST["createDiv"]; echo $division;?>" placeholder="" disabled>
In turn, this form is sent to another .php and I need to drag the $_POST["createDiv"];
to the next .php but naming it with $_POST["div"]
does not work.
How could I do it?
Thanks
I edit with part of the form I want to send.
<form class="form-horizontal" action="insertActa.php" method="post" >
<table class="" width="95%" height="200%" align="center" cellspacing="50" cellpading="100" border="0">
<!-- Fila 1 del registro -->
<div class="container">
<div class="form-row" class="center-block">
<div class="form-group col-md-4">
<label for="inputName"><b>Nombre division</b></label>
<input type="text" class="form-control" name="div" value="<?php $division = $_POST['createDiv']; echo $division;?>" placeholder="">
</div>
<div class="form-group col-md-2">
<label for="inputSurname1"><b>Jornada</b></label>
<input type="number" class="form-control" name="jor" min="1" max="18" required>
</div>
And I want to receive it in the action php, the way to receive it is indifferent to me, I'm trying with:
echo '¡Hola ' . htmlspecialchars($_POST["div"]) . '!';