how to send data to another html page

Asked

Viewed 1,202 times

-3

i have a form in which the user will fill in the data and will return to the homepage of the site, and a login screen of Adm in which he will log in and will see a page with the data that the users filled in, how do this?

inserir a descrição da imagem aquiinserir a descrição da imagem aqui

now I want to direct the user to index.html and Admform to that page receiving the data that php is printing

  • 1

    Put this code snippet in the question, it’s easier to understand

1 answer

0

Your question is confused, but if I understand correctly, you want to have access to information from all users who have filled in this information. If so, you need a database to store this data and be able to query it later. 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:

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

And to display all to the administrator:

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

If that’s not what you want, explain your question better. If you have no idea what I’m talking about, do a little research on Database.

Obs. for page targeting you can use:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.