Questions tagged as 'post'

3
answers

Check if $ _GET value is 1 or 2 and execute SQL UPDATE

I have $_GET['id'] and I need to check if the value it takes from url index.php?id= is 1 or 2 , and if none of the alternatives performs a die(); , if it is 1 or 2 it assigns $var = $_GET['id']; and with a i...
asked by 10.06.2014 / 18:46
2
answers

How to get value from a checkbox

When I submit the form the input does not return the value of checkbox and says $_POST['newsconf'] does not exist. HTML <input type="checkbox" id="newsconf" name="newsconf" value="1"/> <label for="newsconf">...
asked by 31.12.2014 / 23:15
2
answers

Sort Select by ID javascript

Personal I have a select via ajax that pulls the data from my bank but at the time of submitting the select, I'm not able to display by order of ID Grow , <div class="modal-body"> <div id="lista-hospitais-loader" cl...
asked by 10.05.2017 / 15:53
2
answers

How to write data from a form into a database by converting the fields to JSON?

I have some form, example: <form action="confi.php" method="post" enctype="multipart/form-data"> <p><input type="text" name="nome" value="nome"> <p><input type="text" name="email" value="email"> <p>...
asked by 15.03.2017 / 16:19
1
answer

Post IdHTTP with Delphi

I can make a post with HTML quietly, but when I try to do with Delphi, it presents me with this error:    link Follow the code below: function TForm1.UploadArquivo(server, script, caminhoarq : string) : boolean; var Response : String;...
asked by 18.11.2015 / 23:37
1
answer

Handle data returned from ajax request with JQuery

My request: $.post( "http://painel.thomerson.com.br/imagens/escolher-template", $(this).serialize(), function(data){ $("#Resultado").html(data); } ); What is happening is that by inserting the contents...
asked by 26.01.2015 / 23:13
1
answer

Clone Input text and pass the value of the cloned input via POST

I need to clone an input text by clicking a "+" button and then pass the value of this cloned field via POST next to the other form data ... I'm using a JavaScript function to make the clones <script> function mais(campo1, campo2) {...
asked by 19.06.2015 / 08:06
1
answer

Capturing the boolean value of a checkbox in PHP

I'm making a product form, where the user needs to report whether or not the product is used, but I'm having difficulty capturing the value of this checkbox , whether it is 1 or 0 , mysql the column is already set to...
asked by 03.12.2016 / 23:12
2
answers

Send variables using POST

I am trying to open a new URL and send variables via POST method, but it only sends in GET method. I tried this Code: // create a URLRequest object with the target URL: var url : String = 'newpage.html'; var urlRequest : URLReque...
asked by 23.03.2014 / 20:51
1
answer

How to read the result of a file to a variable passing POST parameters?

We can get the result of executing a URL for a variable using the file_get_contents ( ) : <?php $pagina = file_get_contents('http://www.meusite.com/'); echo $pagina; ?> But how can we extend this functionality by passing parameters o...
asked by 22.12.2013 / 16:47