0
Data Retrieve
How do you get data back, after it is submitted in Html?
12 Respuestas
+ 4
Yuvraj Kurmi
I am not criticizing or challenging your coding abilities. I am sure you are a mighty and capable coder, based on the amount of shared codes in your profile.
However I do have a problem when someone gives bad advice and misinformation. Rather than showing a passive-aggressive attitude towards me, you should link to the particular section of the HTML language reference, which explains the getback tag.
I would very much like to read it, in order to learn something new.
+ 3
Yuvraj Kurmi this is false information.
There is no such thing in HTML specification as <getback> tag.
Benjamin Elliott The question itself doesn't make sense either. What do you mean exactly by retrieve?
If you submit information through a web form or API, there is no guarantee that the web service that is processing your request, would be able to give it back to you.
If you have a specific example to clarify your question, then please link your code.
+ 3
Benjamin Elliott Since Tibor already mentioned databases. Here is some more info. https://www.w3schools.com/php/php_mysql_intro.asp
+ 2
"kidding" in a serious forum with trusting newbies should be obvious, while yours isn't.
+ 2
Benjamin Elliott on Sololearn you will not be able to accomplish this.
HTML is only able to display a structure of a web page to the client browser.
When a form is submitted, typically the data is sent to the web server, where it can be processed by some program (we call this the back-end). The data can be saved in a database. Typically this is not transparent for the frontend (your html page) because of security reason.
But the web page can contain some parts that are created dynamically on the server side, rather than hard-coding the static html content. This is how usually the content of the database is served and presented to the client.
+ 2
In HTML, data submitted through forms is typically retrieved on the server side using a server-side programming language, such as PHP, Python, Node.js, etc. The data is sent from the HTML form to the server using the HTTP protocol, and the server-side script processes this data.
Here's a basic example using HTML and PHP:
HTML form (index.html):
```html
<!DOCTYPE html>
<html>
<head>
<title>Data Submission</title>
</head>
<body>
<form action="process.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username">
<label for="password">Password:</label>
<input type="password" id="password" name="password">
<input type="submit" value="Submit">
</form>
</body>
</html>
```
PHP script (process.php):
```php
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = $_POST["username"];
$password = $_POST["password"];
// Process the data as needed, e.g., store it in a database, perform authentication,
+ 1
Yuvraj Kurmi There is no standard HTML element called <getback> is that a custom html tag? If so, custom tags are supposed to include a hyphen (-). Could you elaborate on how your tag works? The tag isn't going to do anything on its own. Perhaps its part of a framework? I believe that tag could make things so much easier. Care to share more info about it?
0
To get the data back after submitting in html we need to use <getback></getback>
0
Tibor Santa you think you know better than me then come 1vs1 in coding i m sending zoom meeting link ok come and join then we will battle .
0
I was just kidding guys
0
<DOCTYPE html>
<html>
<body>
<h1><b>How do you agree?</b></h1>
<form>
<label for="C1">A.</label>
<input type="checkbox" id=C1>
<label for="C1">Yeah</label><br>
<label for="C2">B.</label>
<input type="checkbox" id=C2>
<label for="C2">Yes</label><br>
<label for="C3">C.</label>
<input type="checkbox" id=C3>
<label for="C3">Head Nod</label><br>
<label for="C4">D.</label>
<input type="checkbox" id=C4>
<label for="C4">Yea</label><br>
<label for="C5">E.</label>
<input type="checkbox" id=C5>
<label for="C5">Other</label><br>
<input type="submit">
</form>
</body>
</html>
This is the code, I wanted to put the data into a table to show the percentage of people who chose the same answer as you. I'm not sure if it is even possible.
0
Ok thanks