Most voted "post" questions
The POST method sends the data by placing it in the body of the message. It keeps the URI separate from the data that will be sent and with this we can send any type of data by this method. When you make a record in a form and after sending the URI you do not have the question mark separating the data you entered, probably the form was sent by the POST method.
Learn more…420 questions
Sort by count of
-
-1
votes1
answer14
viewsAspnetcore with Ajax method POST
I created an aspnetcore example project with ajax-POST, but Something is going Wrong. Where am I going Wrong? What is Missing? Index.cshtml (JS) $(document).ready(function () {…
-
-1
votes1
answer34
viewsProblems with no screen refresh queries
Friends, I am trying to do a database search and present the result on the screen without updating the page, however when typing in the input no message is displayed. The user would start typing a…
-
-1
votes1
answer21
viewsWhy is the data coming from the form only displayed after the resubmission of the form?
I am developing a task manager. Obviously I need a task add function. function loadInputForm () { global $title, $status,$description, $date; if($_POST){ $title = filter_input(INPUT_POST, "titulo");…
-
-1
votes1
answer58
viewsWhy are strings that contain [ or ] coming from $_POST transformed into an array?
I am sending data from a textarea via AJAX to PHP by the POST. method in this textarea contains some square brackets. Well, when the text of the textarea arrives in the POST, it automatically…
-
-1
votes0
answers31
viewsInsert with PHP in SQL SERVER
Through the POST method I am sending the form data. However at the time of the insert INT type fields in the database give the following error: "sqlsrv_rows_affected() expects Parameter 1 to be…
-
-1
votes0
answers35
viewsHow do I send these form fields via email via PHP?
I got a ready-made website that has over 3,000 pages and many of them have a quote form. The problem is that the form action sends the data to an URL without extension. <form…
-
-1
votes0
answers15
viewsHow to send two $.ajax requests at the same time to the php file using a function as a parameter in AJAX date just by making a request?
I am having trouble sending the data via AJAX at the same click event. PHP does not identify the title, only the photos that were sent. In SQL, the title of the product is not registered, only the…
-
-2
votes1
answer57
viewsHTTP request (POST)
Hello, I’m studying Angular and to train I’m doing a small Web application, but I’m having problems with the Post: Can anyone help me? The error message that appears in the browser is this:…
-
-2
votes1
answer66
viewsSent data via GET and POST with Java Script
People see if anyone can help I have a variable called "ssid" where there is information that to send to a php file, someone can help me how to do? function chamarSS(ssId ){ if(ssId){…
-
-2
votes1
answer81
viewsHow to pass via POST Javascript information to PHP
I have a select which is assembled via database query. <?php $tl_rel = ""; $arg = array("select"=>"*","tabela"=>"TAB_RELATORIOS","where"=>"where login='{$_SESSION['login']}'"); $obj_rel…
-
-2
votes1
answer626
viewsI cannot return to input the value of a PHP POST
I have a form with four numeric fields, ncr11, ncr22, ncr33 and ncr44. There is still another field in the form, ncr, that will receive a total value, which corresponds to the sum of all the first…
-
-2
votes2
answers798
viewsHow to get header data in PHP post
Guys, I’m having a hard time getting a specific header data sent by Pagar.. When sending a postback to the site server, I need to use the signature sent in Header, in case the X-Hub-Signature…
-
-2
votes1
answer286
viewsI’m not able to send a POST to PHP by Javascript fetch
I’m trying to send a POST to PHP using fetch, the code is like this: <button onclick="fnConsultarDadosPost()">Consultar com POST</button> <button…
-
-2
votes1
answer182
viewsERR_EMPTY_RESPONSE error when sending data via 'POST' to local server
Until yesterday it was all right, but after clearing the browser cache, strange as it may seem, I can no longer send data via post to the local server, GET works without problem but the Post is not…
-
-2
votes2
answers708
viewsHow can I catch error 401 when making a post using Reactjs Xios on a login screen?
I’m making a login screen, I have a function that posts an API sending user and password, and gets a token back from being correct (so far so good), or returns error 401, which is shown in the…
-
-2
votes1
answer32
viewsHow to take this data from filter_input_array and insert it into another php file
My filter_input_array receives all the data from the form, but I don’t know how to take this data and insert it into another php file <?php $data = filter_input_array(INPUT_POST, FILTER_DEFAULT);…
-
-2
votes1
answer15
viewsPHP+File uploading error
Good morning, everyone. I’m trying to do a simple PHP video upload. My HTML code is here: <html> <head> <title>Aproveite o site</title> </head> <body> <form…
-
-3
votes2
answers102
viewsHtml/php tables do not appear
I have this code, but the goal was when you click if you see, the table appears, the problem is that every time I click everything disappears, and does not create the table. If I remove the form it…
-
-3
votes1
answer40
viewsThe page only displays the Else message. if doesn’t work and I don’t know what the problem with that simple code is anymore
<?php if ($_POST) { $nome = $_POST['nome']; $telefone = $_POST['telefone']; $logradouro = $_POST['logradouro']; $numcasa = $_POST['numcasa']; $bairro =…
-
-4
votes1
answer1618
viewsWhat is the difference between $_GET and $_POST?
Could they explain in detail what they are? And also give examples of how they work?