how to send data to another page in html

-3

I have a form in which the user will fill in the data and will return to the home page of the site, and an adm login screen where he will log in and will see a page with the data that the users filled How do I do this?

Now I want to direct the user to index.html and ADMform to this page getting the data that php is printing

    
asked by anonymous 10.12.2017 / 20:32

1 answer

0

Your question is confusing, but if I understand you correctly, you want access to information from all users who filled out this information. If so, you need a database to store this data and then be able to query it. An example with MySQL would be:

$server = "localhost";
$user = "root";
$password = "";
$dbname = "nomeDoBanco";

//Criar a conexao
$con = mysqli_connect($server, $user, $password, $dbname);

After that, you need a query to register infos:

mysqli_query($con,"INSERT INTO nomeTabela (campos) VALUES $info1, $info2..." ): 

And to display all to the admin:

mysqli_query($con,"SELECT * FROM nomeTabela");

If this is not what you want, explain your question better. If you have no idea what I'm talking about, search a little about Database.

Obs. for page targeting you can use:

echo "<script> location.href='../páginaQualquer.php'; </script>";
    
10.12.2017 / 21:17