Hello everyone and happy first year. I am creating a form in html5, and I need that after clicking on the submit button and doing the POST process, fill out another form, with the same data as the previous one, in case there has been an error to correct it before it is sent definitively . This is the code of the form
<form action="fadaform020.php" method="get">
Asociación: <input type="text" id="asociacion" value="$asociacion"/>
Nick: <input type="text" id="jug_nickname" value="$nick"/>
Nombre: <input type="text" id="jug_nombre"/>
Apellidos: <input type="text" id="jug_apellidos"/>
DNI: <input type="text" id="jug_dni"/>
Fecha Nacimiento: <input type="text" id="jug_fec_nac"/>
Email: <input type="text" id="jug_e_mail"/>
Teléfono: <input type="text" id="jug_telefono"/>
Duración: <input type="text" id="duracion_seguro"/>
<input type="submit" id="enviar" onclick="rellenar();"/>
</form>
This is the code from which I capture the value of the input that has been passed by post:
$asociacion = $_POST['asociacion'];
$nick = $_POST['jug_nickname'];
$nombre = $_POST['jug_nombre'];
$apellidos = $_POST['jug_apellidos'];
$dni = $_POST['jug_dni'];
$fechaNacimiento = $_POST['jug_fec_nac'];
$email = $_POST['jug_e_mail'];;
$telefono = $_POST['jug_telefono'];
$duracion = $_POST['duracion_seguro'];
$comprobar_dni = comprobar_documento_identificacion($dni);
I have read that it can be done with javascript, but I have never touched that language and I do not know how it is done, apart from the fact that I need to fill it out, once the form has been sent.
thanks in advance and greetings