I need to have the user click the "Send" button automatically to redirect to another page with all the data entered by the user such as: email, password, name, etc. (using "get" method) .
It happens that I tried to do it and only managed to redirect it to the other page, being empty.
Below is my HTML file:
<form action="dados.html" method="post">
<input type="text" id="cNome" name="tNome" size="20" maxlength="20" placeholder=" Digite Seu Nome"/><br><br>
<input type="email" id"cEmail" name="tEmail" size="30" maxlength="30" placeholder=" Digite Seu E-mail"/><br><br>
<input type="date" id="cData" name="tData"/><br><br><br>
Filme:
<select id="cFilmes">
<option >Transformers: O Último Cavaleiro</option>
<option >Planeta dos Macacos: A Guerra</option>
<option >Velozes e Furiosos 8</option>
<option >Alien: Paradise Lost</option>
<option >Carros 3</option>
<option >Logan</option>
</select><br><br><br><br><br>
<input type="submit" value="Enviar"/>
<input type="reset" value="Cancelar"/>
</form>
Below is the redirect page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dados</title>
<script type="text/javascript">
var nome, email, data, filme;
nome = document.getElementById("cNome").value;
email = document.getElementById("cEmail").value;
data = document.getElementById("cData").value;
filme = document.getElementById("cFilmes").value;
document.write("Obrigado, " +nome+ "\nSegue abaixo seus dados:\nE-mail: " +email+ "\nData de nascimento: \n" +data+ "Filme escolhido: " +filme)
</script>
</head>
<body>
</body>
</html>
I'm a beginner in this area and I've tried to see several tutorials on YouTube but most of them are using HTML together with PHP, JQUERY, JAVA, languages I do not have the slightest knowledge of, I want it to be just using HTML and JS. other questions and has already seemed but I want to ask in this if you have a simpler way to be putting it because as I am beginner did not understand very well with the other questions, but if you have no other simpler way to explain as detailed as possible, I will be very grateful.