Questions tagged as 'post'

1
answer

move_uploaded_file returns only FALSE

I have a problem that I could not identify, move_uploaded_file returns only FALSE regardless of what I pass in the parameters. Here is the code: <form method="POST" enctype="multipart/form-data"> <input type="file...
asked by 26.10.2018 / 18:30
1
answer

How to send an image per post in the angle

I would like to know how I can be sending an image to an angle 6 through the post method. First I should encode this image in base 64 and then I'll send all that coding as a value of a key ????     
asked by 27.07.2018 / 18:45
1
answer

Error when using Javascript window.history.back () [duplicate]

Hello, I am having trouble using the window.history.back () method in Javascript, it has the functionality to return to the previous page of my application, the problem is that I have a POST-type search on this page and when I try to return...
asked by 01.06.2018 / 19:53
2
answers

Receiving POST from a Json in PHP

I'm trying to get a Json via POST and display it on the screen, Json is sent via an API that I do not have access to the script it sends, I'm trying to print everything I receive on the screen and then proceed, I know it is sent via POST and Con...
asked by 25.05.2018 / 16:46
1
answer

Post repeated on sending the data to the controller, how do I solve it?

I'm trying to develop a php mvc system but I came across this problem in Create. The post is sending multiple repeated data I do not know why this is happening. Myviewcreateislikethis<formid="form1" action="<?php echo BASE_URL; ?>Pr...
asked by 01.05.2018 / 17:06
1
answer

Submit a POST request with java

I need to send a POST request to the following address which is an Amazon API:    link And in this request a JSON has to be sent: { "token": "633cc5hs58512b012104c7408d60d19930d5514", "email": "[email protected]", "answe...
asked by 16.03.2018 / 15:28
1
answer

Error executing POST method

I'm facing a problem with the POST method, when I trigger this method it normally inserts into the database, but the application (node index.js) is terminated, at the command prompt I get this error: Error [ERR_HTTP_HEADERS_SENT]: Can not se...
asked by 06.12.2017 / 18:51
1
answer

Save $ _POST with var_export then generate Variable again

I needed to generate some data by taking the contents of a $ _POST and saving it to a file to process it later. I did as follows: $dados = $_POST; $dados = var_export($dados, true); $handle = fopen('posttemp.txt', 'a'); fwrite($handle, $dad...
asked by 28.11.2017 / 00:20
1
answer

Input added with .append () does not send the POST data

The script below adds groups of fields to a form. Until then, okay. The fields are added but when I send the form I only receive the data from the fixed inputs, those that are added dynamically are not received. Code: $(document).ready(...
asked by 24.10.2017 / 16:18
1
answer

Write AJAX Data

I need to send data via ajax to write, and one of the information is an array, but the array loses position when I get it in PHP, I do not know if there is a size limit for the AJAX object sent, if I need to split the array in several how would...
asked by 21.07.2017 / 15:53