Hi, i want to send data with the form but the data cannot be fillen in a input field. And i dont want to use a session.
<input type="text" name="fileName">
you can use POST or GET
create two files, htmlfile.html and phpfile.php
paste these codes where u have its extension and run you will be able post data from a form
<form method="post" action="phpfile.php">
$name = $_POST["myname"];
Sending data with forms is a server side action, your code looks ok except the fact that it does not have a post method hence the server does not know how to process it.
<form action="file1.php" method="POST">
Note: The method VERB must be POST, and when receiving it should be GET.
I hope this helps.
Clement Benjamin you could use python to create a webserver with the http.server module and handle requests, or you could upload your files to a webhost (some free examples are 000WebHost and GithubPages (GithubPages doesn't support server-side script, but 000webhost supports php), with both of them you'll have a domain like: something.000webhostapp.com or something.github.io)