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
answer53
viewsGet parameter passed by POST with $.ajax
I’m having trouble getting the id passed by the ajax date (jquery), what happens is using $_POST['id'] or filter_input(INPUT_POST,'id') empty follow the ajax: $.ajax({ type:"POST", url:…
-
1
votes0
answers30
viewsForm loses information passed by POST
I have a form that contains a total of 45 textarea (I will post only the first part here). When do I send this information from form one-page PHP, that only displays what has been passed by POST,…
-
1
votes0
answers187
viewsHow to authenticate with token (JWT)?
Good night, you guys! I have tried 3 different ways, but the closest I got was the code I will post below, I am developing an application as a study using Angular and Python and currently I already…
-
1
votes2
answers61
viewsProblems with the return of $_POST values
I am sending, through a form, an email. I do the tests, but it receives only 3 of the 4 fields, it is simply as if the field with the name and con_phone did not exist. HTML: <form…
-
1
votes1
answer129
views -
1
votes0
answers43
viewsRemove value from a POST variable to not duplicate insertion
I have a problem on my site, when I click save inside a modal, it sends the data via Ajax and makes the insertion in the database, when performing these steps, I call a javascript function to update…
-
1
votes1
answer488
viewsOPTIONS request not reaching the server
I am making POST requests by sending and receiving JSON in my PHP API. When I’m on the localhost it works as expected, but when I’m in production I get the error below on Chromium: OPTIONS…
-
1
votes2
answers2367
viewsHow to send a JSON object in a POST request with ajax?
I need to send a json object with ajax to an external API but cannot include variables instead of static values var numSGPE = document.getElementById('numSGPE').value var setor =…
-
1
votes1
answer86
viewsHow do I return a req.body.variable in a Express Rest api in a POST method?
When I try to return one req.body.qualquerVariavel acquired through a POST method, the return is undefined, and if I put the API to show on the console, it shows the value correctly, I wanted to…
-
1
votes0
answers139
views"Cannot POST" error
My code makes the mistake: Cannot POST /save-Institution when I click send in the form server.js: const express=require('express'); const path=require('path'); const pages=require('./pages.js');…
-
1
votes0
answers39
viewsWORDPRESS database error
Good morning guys, error caused this morning made a Wordpress site that I have in a hosting godaddy was unavailable. In short the site fell, and I could not solve this problem. Below is the error…
-
1
votes0
answers47
viewsPass value from a button to a php variable through POST using AJAX
Hello I would like to ask a help, I started using ajax recently and I am having a problem that I could not identify with my little knowledge. I am developing a project that I want to take the value…
-
1
votes1
answer30
viewsInitial Form Django is not working properly
Well I am developing an application in Django and I am trying to use jquery with Django to make a request to Viacep to consult the cep that the person typed and left the focus of the field that was…
-
0
votes2
answers410
viewsUnknown Error: "null" when running an Httppost with Parameters
Explanation: I own a simple Android app, and also a Nodejs server. I have the following permissions on AndroidManifest.xml of my application: <uses-permission…
-
0
votes1
answer17853
viewsHow to pass a value to next page with PHP
In the code below I try to pass the value to the next page NumeroCartao. But the variable is empty on the next page. How to fix this error? INDEX.PHP <label> Numero da Carteira: </label>…
-
0
votes1
answer1055
viewsSend a modelView as parameter to a modal bootstrap
When searching for how to render a partialView in a modal bootstrap, found this link: Using Bootstrap Modal window as Partialview, only I need to make a request POST by clicking the button that…
-
0
votes2
answers722
views -
0
votes1
answer178
viewsHow to send and receive data to BD Mysql using PHP in Objective-C?
Scenario: Send and receive forms to a Mysql database using PHP. I wonder if anyone knows or has any link to a didactic and clear tutorial about these procedures, sending and receiving using JSON.…
-
0
votes1
answer336
viewsPOST (PHP) with JSON
Well, I researched an answer and couldn’t find one, so I decided to ask here. I was making a Login system with JSON and PHP that should send a POST through JSON but the variable "_POST" always…
-
0
votes1
answer63
viewsRemote file upload with Javascript
It is possible to make a request POST sending a file as parameter? For example the website of Tinypic contains a field of the type file, and I want to send a direct image of my application to…
-
0
votes2
answers353
views -
0
votes0
answers282
viewsHow do I get the same browser answer using java/socket?
The thing is, someone already had to make a request http-post implementing socket java? I need to make a request on the site http://spys.ru/en/ and take the Sponse to mine some proxys. However, I…
-
0
votes2
answers918
viewsReceive form name or Submit PHP
How can I receive in a function of another page the form name or Submit sent through POST? <form class="form-inline" name="indicador" method="post" action="funcoes/indicadores.php" >…
-
0
votes1
answer390
viewsCarousel with Wordpress posts
Hi, I’m trying to apply OWL-CAROUSEL to a custom post page. When I do in normal HTML, without PHP tags, it works great, but if I play in the wp_query loop it does not take the plugin and list the…
-
0
votes1
answer332
viewsRecover value Angularjs POST
How to recover the value in php file when I use this Angularjs post method? $http({ method : 'POST', url : 'xxxxxxx.com/consulta.php', data : JSON.stringify($scope.newName), headers : {…
-
0
votes1
answer2573
viewsWhy is the GET method considered safe and the POST method unsafe? And in what situations should I use them?
I read that the method GET is considered "safe" and the method POST is considered "unsafe". Shouldn’t it be the other way around? The method POST does not expose the data sent in the URL, so it…
-
0
votes2
answers284
viewsHow to keep a $_POST on the page
I have a question system,: <form class="form-horizontal" method="POST" action="perguntas.php"> <fieldset> <legend>SELECIONE O QUESTIONÁRIO</legend> <div…
-
0
votes1
answer906
viewsMethod $_POST returning NULL
Good night. I’m having a problem with my $_POST method, because it only returns me NULL. I have tried from N forms, redesigned design, BD, refiz class by class, etc., but without success. Where am I…
-
0
votes1
answer86
viewsHow to send values in a hidden way to the SQL Database within Windows with POST
Good morning guys, I have a question in PHP. I have a page on my site that contains a form that sends the information from it to a validation page that connects and sends the information to the…
-
0
votes2
answers128
viewsEmpty page when running sql command
When I run the index.php page, there is a form that goes to the login.php page When the login page is executed it is completely blank, does not execute anything. The Code is as follows: <?php…
-
0
votes0
answers420
viewsUpload image + parameters Httpurlconnection
I have a Rest server and I need to upload images and also send parameters. I’ve done a lot of research, but I still can’t get the client to work. By the browser works right, via code I can send the…
-
0
votes1
answer1158
viewsPassing $_POST through the URL
I have a form that is mounted dynamically according to the preferences of each user and is submitted via post to the page that does the process. In the process page I need, among other things, to…
-
0
votes0
answers251
viewsForm does not send POST
I am developing a data import system for XLS to Mysql. The system is practically ready. I did a test with a file xls 24kb and successfully exported without any error. The problem is that I have been…
-
0
votes2
answers101
viewsWhat can I use to differentiate two POST requests in php
I am making a web system with php, which has a conditional deviation to check whether the request is a repeated post or not, I did this to ensure that I would not keep giving multiple repeated…
-
0
votes1
answer43
viewsSearch within a _POST
I was wondering if there is a way to search for data inside a POST? I need it a lot, because each box is a different id. Example: **JS:** data {'id':id, 'ponto1':ponto1} **AJAX:** id: $id =…
-
0
votes3
answers1170
viewsHow do I share posts from my website on facebook?
So, guys, I know a lot of people have a hard time with this. I set pretty much the open Graph meta tags, but the problem is that I wanted the share button to share the specific url post. How do I do…
-
0
votes0
answers31
viewsWorking with the result of a $post with jQuery
making a $post and getting the result json, until then everything ok, but I need to work this result outside the scope of $post(); only that the variable after the post, is empty... see the example:…
-
0
votes1
answer129
viewsCustomized Webapi Response
Hello, I have a Webapi service and would like to get an answer specifically with a Date, but at the time I call this service and get the return of my Postasync what I see is just an httpResult…
-
0
votes1
answer627
viewsSend POST file with php using file_get_contents
Is there any way to send a file via file_get_contents without manually manipulating the request header ?
-
0
votes2
answers89
viewsHow to rescue large amount of variables sent by POST and use them?
I have a problem rescuing large amount of variables sent by the method $_POST. I was using this code earlier: import_request_variables("gp", "rvar_"); But the same was discontinued and my script…
-
0
votes1
answer117
viewsMake PHP show folder files
Guys, I’m working on my project. A reading app. But I want to do one thing to help in it, I have over 12000 pdf’s to put in the app. I wanted to put the pdf in the folder it appeared as shown in the…
-
0
votes0
answers96
viewsDoubt how to get the answer (Java)
Friends, it is possible to get the answer of this request through a GET or POST? The page is: http://nfe.sefaz.ba.gov.br/servicos/nfenc/Modulos/Geral/NFENC_consulta_chave_acesso.aspx What I need is…
-
0
votes0
answers65
viewsMultiple submits in one form
I have an "Export" button that sends the form data via Post. I need that this data can be sent several times without updating the page, but the browser is blocking more than one "Submit" of this…
-
0
votes1
answer47
viewsPass value by link
I need to send a value through a link to another page: <li><a href="" onclick="getPasta()" id="icons"><?php echo $this->translate('Download');?></a></li> I tried to…
-
0
votes2
answers156
viewsI cannot capture the post by webapi c#
good morning. I’ve been trying for a few days trying to capture a POST made in Javascript by webapi c# and the most I can is the webapi telling me that the expected parameter is NULL. var…
-
0
votes1
answer281
viewsError while running an Httpresponse in Android Studio
I am trying to send a string from an Android app to a PHP page, but when I send it, an error occurs in the method Httpresponse Response=httpclient.execute(httppost); In case anyone can help me with…
-
0
votes0
answers299
viewsData request, Cielo checkout
I am having trouble receiving the data in the notification and status URL of Checkout Cielo. I am using the Codeigniter framework, and the data does not update the table. Follow the code of my…
-
0
votes0
answers52
viewsRest API Returning Token
I need to develop an application in Swift I’m trying to consume a API to log in and when to log in Token, but this Token is already existing in the API, would you like to know how I send it? It’s…
-
0
votes1
answer67
viewsA question regarding the use of POST in communication between Javascript/AJAX and PHP?
Well I am working on a project that connects JS to PHP through AJAX. To make this connection was using the GET method and then made the request this way: "seilaooque.php?valor1=x&valor2=y" only…
-
0
votes0
answers197
viewsHow to protect method post
Guys is the following I have a method post that the guy makes money for it, last night the guys hacked all the money from the site with the Postman program by sending the points to him by the…