FAQ Database Discussion Community


how to post parameter like {“register_id”:“3”} in AFNetwroking

post,methods,parameter-passing,afnetworking,raw-data
i Tried it but didn't work in AFNetworking only showing parameters error but i used postman to check and when i send data via key and value it showing error but from raw data i send {"register_id":"3"} then it will show me data so how to post parameter like this...

how can I create a URL/site to send a HTTP 204 or HTTP 403 response?

objective-c,http,servlets,post,ios7
I'm trying to create an app with a login page to POST to a url and return a status code. For now the app is to call a URL that returns a HTTP 204 or HTTP 403 response. How is this done? Do I need to create/implement a servlet?

Jquery : inject response from AJAX posts into right div

jquery,ajax,post
This is driving me insane. Here's what I'm trying to do; For every DIV on my page that has a class of 'gauge', I need to fire off a jquery Post request via Ajax, containing some parameters from a ViewModel (called 'params' in the code snippet below). The ID of...

Handling POST request via Socket in Java

java,sockets,http,post,request
I'm trying to handle a simple POST Request in Java using a Socket. I can receive the request header and answer the request without any problem, but I certainly can not get the body of the request. I read somewhere that I'd need to open a second InputStream to achive...

Getting numbers from form via POST, not working, PHP

php,forms,post,get
I have 2 files. I'm trying to get the POST from one file to another, yet it's showing up as null for some reason. Please take a look: testx1.php <?php echo "<form method = 'post' action = 'testx2.php'>"; echo "<input type = 'number' name = 'number'>"; echo "<input type =...

Ruby POST request with JSON body

ruby,json,post
I am trying to write a POST request in Ruby to an API I published via the Microsoft Machine Learning studio. I am returning error 400 with the following: require 'unirest' require 'json' uri = "https://ussouthcentral.services.azureml.net/workspaces/a0e65d42d21c423fa4027d98f6ad364f/services/0d797f1b26d4410cae35c50d25d1c7cd/execute?api-version=2.0&details=true" apikey = "some api key" params = {some json body} response = Unirest.post(uri, headers:...

How can I POST JSON values without property expansion in soapUI?

json,post,properties,parameters,soapui
In soapUI, I am trying to perform an HTTP POST with the following JSON: { "myNode":{ "myOtherNode":"${MY_VALUE}" } } The POST operation is successful, but in the response the value for myOtherNode is blank. I'm guessing this is because soapUI is treating it as parameter and trying to replace it....

Hover text over post image in wordpress [closed]

css,wordpress,post,onhover
I've been trying to find a good, simple solution for this for days now, and I'm coming up empty handed. I'm trying to make a blog in wordpress, that currently has excerpt with images on the front page. The images are not featured images and they link to the full...

PHP: Submitting form data via $_POST works for all fields except radio buttons

php,forms,post,radio-button,radio
I am new to PHP and hope someone can help me with this. I have an HTML form with a number of inputs and textareas. On Submit I pass the form to another PHP page that generates an email with its values. For text inputs and textareas everything works as...

POST nested Json with Silex

php,json,post,silex
I'm new in Silex and I'm trying to retrieve nested Json Data with POST. Here is the Json part. { "action": "opened", "number": 3, "pull_request": { "id": 35845110, "number": 3, "state": "open", "locked": false, "title": "Kie" } } My code works for action, number and pull_request but I only want...

form post method not working

php,html,post,methods
<html> <head> <title>Register</title> <head> <body> <h3>Register Page</h3> <a href="index.php">Click here to go back</a></br> <form action="register.php" method="post"> Enter Username: <input type="text" name="username" required="required"/></br> Enter Password: <input type="password" name="password" required="required"/></br> <input type="submit" value="Register"/> </form> </body> </html> <?php if...

Some Form Inputs didn't sent via GET / POST [duplicate]

php,html,post,get
This question already has an answer here: Disabled form inputs do not appear in request 4 answers Here is My Update Item.php <!DOCTYPE html> <html lang="en"> <head> <style type="text/css"> input[type='text'],input[type='number'],input[type='date']{ color:#0000FF; background-color:#FFFFCC; } </style> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta...

change $_POST content without refresh page? [Solved]

php,ajax,forms,post
I have a page with dynamic content and a button to save as PDF. I send via ajax the content to my php file. The problem is that my application never refresh. If I change the content on page, and then press save pdf button, the content of $_POST never...

MySQL multi SELECT query into form and then UPDATE

php,mysql,forms,variables,post
What i am trying to accomplish is Getting data from MySQL database into a table only containing rows where a user forgot to log in or out(done) Change the data in the table (done) Click submit and it updates all the data in the table into the MySQL database I...

How to Convert get LIST from MVC for using as Json

c#,json,asp.net-mvc,post,get
I try to Get Data from MVC controller as JSON but it appear that it submit to me like an LIST and i can't use a json object i recieve. except from using stringify. But i really need some part of it not the all object. Controller*** public class testController...

How to get POST parameters from CGI scripts written in bash?

bash,shell,post,cgi
I'm writing a web application using CGI scripts written in bash. For GET requests, the request parameters are available in a variable named $QUERY_STRING. However, I'm unable to figure out where the similar value would be stored for POST requests. I'm using the following script: #!"c:/msys64/usr/bin/bash.exe" # On *nix, replace...

error write large file got request entity too large

javascript,node.js,post,stream,fs
I use the following code to send from the browser body(via postman ) file content which is large file. before for small file I use the following which work perfect fs.writeFile(filePath, req.body, 'utf8', function (err) { ... now I use the following app.post('/bb',function(req,res){ var filePath = 'C://test.txt'; var writeStream =...

Can't unescape double quotes in JSON object POST with javascript

javascript,jquery,json,post
I am trying to POST JSON, but the " is coming through escaped as %22. So where I see this: {%22domain%22:%22asdf.com%22,%22playerClass%22:%22asdf%22,%22adTag%22:%22%22} in the console after POSTing, I want to send it without the double quotes being escaped. So, it should look like this: {"domain":"asdf.com","playerClass":"asdf","adTag":""} I am looping through the form...

How to check POST Request is sended to Server in JSON web service

objective-c,json,web-services,post
In my app I want to check the Authentication For Login. But when I post request I don't know if my request has reached the server. Here is my code... -(void)clearsession { NSString *username = @"[email protected]" ; NSString *password = @"password"; NSURL *aUrl = [NSURL URLWithString:@"http://developer.b24solutions.com/grocery/MyLogin.php"]; NSMutableURLRequest *request = [NSMutableURLRequest...

POST data being cut short

javascript,php,jquery,arrays,post
It seems when I .post() a large array a lot of the information gets removed. In the following code snippet the first .html() shows all the array data while the return result of the PHP only shows a portion of the data. JavaScript: $('.inner').html(JSON.stringify(dbData)); $.post( "test.php", {'filename' : filename, 'dbData'...

Proper way to use PDO with mass amount of INSERT Values

php,mysql,post,pdo
I am using PDO to insert into a MySQL DB input from users on a form with 10 input fields. I make a numeric array containing the $_POST values by doing this: foreach ($_POST as $key => $val) { //testInput() sanitizes the input $postArray[] = testInput($val); } From all the...

Python (Post) submit a form

python,post,submit
I am teaching myself with submitting a form on the web but somehow post is not working. The url is https://courselist.wm.edu/courselist/ and the code so far is: from bs4 import BeautifulSoup import requests import urllib import re url = 'http://courselist.wm.edu/courselist' with requests.Session() as session: response = session.get(url) soup = BeautifulSoup(response.content)...

using requests to login to a website that has javascript login form

javascript,python,ajax,post,python-requests
Let me preface by saying I have very little programming experience. I've learned a bunch in the last few days trying to write this program. I am running Python 2.7 on Windows 7 using PyCharm, requests, Beautiful Soup, and lxml. I am trying to scrape data from a website that...

Swift: Filter a POST http request answer

json,uitableview,swift,http,post
On swift, I am querying a server by an HTTP Post request, with: let myUrl = NSURL(string: "http://****.*****.***.***/****.php"); let request = NSMutableURLRequest(URL:myUrl!); request.HTTPMethod = "POST" let session = NSURLSession.sharedSession() var getDefaults = NSUserDefaults.standardUserDefaults(); var password = getDefaults.valueForKey("password") as! String; var id = getDefaults.valueForKey("login") as! String; var err: NSError? let postString...

Passing Two Parameters on a JSON POST Request in Rspec

ruby-on-rails,ruby,json,post,rspec
I have a JSON Rails 4 API that I'm testing with Rspec. I'm having trouble passing to two parameters in the post :create request. Here is the current test: require 'spec_helper' module Api module V1 describe Api::V1::ProductsController, type: :controller do before do @api_app = FactoryGirl.create(:api_app, request_origin: "0.0.0.0") @store = FactoryGirl.create(:store)...

PHP-HTML5-Form - My query-generated dropdown posts a blank value

php,mysql,html5,post
When I load my page, the value of the variable, $v_UpdateONE, is "Select Version". When I select a version, the value goes blank. I need to grab the selected value for use in a DB update statement. Thank you for any assistance. -James <FORM METHOD="post" ACTION="Update.php" WIDTH="50"> <?php $avQuery =...

Android post request in php

php,android,laravel,post
I'm trying to make a php script send an email whenever I make a post request. If I load my website in a web browser, it indeed sends a mail. But whenever I send a post request in Android (calling the postData method), nothing happens. Why doesn't it work? public...

What are all the PHP types that can be found inside the PHP's $_POST variable?

php,post
What can we find in $_POST: That $_POST itself is always an associative array String values More arrays inside $_POST Anything else? Two questions come to one's head: What encodings can these strings have? Is it possible to find in the $_POST array any values besides strings and more arrays?...

ElasticSearch asynchronous post

database,post,asynchronous,elasticsearch,get
I'm posting data on my ElasticSearch database. I've noticed that data is not immediately available, it requires some milliseconds to show up in a GET request. I can live with that (after all, the calls are asynchronous so this behavior is expected) but in my test code I need to...

Pass variable from Javascript to PHP to write to file

javascript,php,html,post
It could be duplicate cause unable to find answer even by searching similar questions of Stackoverflow. This is what I am trying to do. I need to pass a stored variable in JavaScript to PHP which would write it to temp file 'yy.html'. I could get alert from the submit...

Insert random string into mysql table

php,mysql,post
I try to insert the variable randomString into the table user2 into the column code, but it wont work. All other values are in the table, but the generated string wont. The column code have the type varchar(8). Where is my mistake? <?php session_start(); $message = array(); if (!empty($_POST)) {...

Can´t save $_POST from
into .html

php,html,forms,post,fwrite
I try to save $_POST from a <form> into a .txt file. If i click on the submit button, my code will save only the $date variable, and not $date & $hour. This is my form in "form.php" <form method="post" action="save.php" id="formID"> <input type="text" name="Name" placeholder="Name" id="nameFieldID"> <input type="text" name="Hour"...

Check if POST is succesfull (Android) [duplicate]

java,android,post,request
This question already has an answer here: Android, Java: HTTP POST Request 6 answers I am doing a post request in Android. It should give me a response in the form of a string. Thats what i do to check it. However it gives me an empty string back....

$.post returns object when aiming for simple php

php,jquery,ajax,post
I guess I'm just having difficulty with $.post... I've used it successfully in the past, but I have to be forgetting something important. All I want is a "hello world", but I'm getting a complicated object. I am befuddled. var_test.php <?php PRINT "hi"; ?> index.html <!doctype html> <meta http-equiv="Content-Type" content="text/html;...

Add custom value to google map directons

wordpress,google-maps,post
How can i read custom field value and set as start & end in order to display google direction function calcRoute() { var start = document.getElementById('start').value; var end = document.getElementById('end').value; var waypts = []; var checkboxArray = document.getElementById('waypoints'); for (var i = 0; i < checkboxArray.length; i++) { if (checkboxArray.options[i].selected...

Receive json post in php from browser

php,json,post
I am trying to receive and print json with this php code: <?php $data = json_decode(file_get_contents('php://input'), true); print_r($data); ?> I am not receiving or printing any data. But if i use this ajax: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> </script> <script> (function($){ function processForm( e ){ $.ajax({ url:'http://mydyndns:8010/has/input_parameters_startReg.php', dataType: 'json', type: 'POST', contentType: 'application/json',...

php - Send data from one php page to another and refresh it with the new data

php,json,post
i'm trying to the following: I have 1 page that is called request.php that receives a post from a webhook of hipmob Documentation: https://www.hipmob.com/documentation/chat-events.html <?php $entityBody = file_get_contents('php://input'); $post_data = $_POST; $data = json_encode($post_data, JSON_PRETTY_PRINT); $file = 'webhook.txt'; $current = file_get_contents($file); file_put_contents($file, $data); //error_log($data); ?> Example output: { "app": "eba978375b294260bd884a72afd5eb75",...

Reveal info by clicking on link

arrays,post,hyperlink,get
I have 4 links: <a href=""><img src="img/photo1.jpg" /></a> <a href=""><img src="img/photo2.jpg" /></a> <a href=""><img src="img/photo3.jpg" /></a> <a href=""><img src="img/photo4.jpg" /></a> I also have md array: $users = [ "id_1" => [ "personal_id" => "111111", "name" => "Arthur Novickov", "location" => "Moskow", "age" => "22", "status" => "online" ], "id_2" =>...

Sending token query string parameter from webpage url in POST request

php,http,post,request,token
I'm trying to send a POST request with part of the webpage URL as the parameter. For instance, in this url: http://testsite.com/confirmEmail/?token=abcdefg I want to be able to send the input token with the value abcdefg. I want to make this responsive to different token values. Any ideas? Thanks...

jQuery / Ajax: How to pass JS variable to specific PHP function [closed]

php,jquery,ajax,post
I am new to PHP and never used Ajax before so I hope someone can help me with this. I have a separate functions.js file that stores all the JS I use for the pages of a website. So far all the exchange with the db is done with PHP...

How can I see Facebook password, If I logged in?

facebook,post,passwords
If I logged in browser in Facebook so is there any way where I can check my password?

Adding Post data to XML String

php,xml,post
I collect data from a form like this : $title = $_POST["title"]; $fname = $_POST["first_name"]; $surname = $_POST["surname"]; I want tot build an XML String and add the above post data. I have tryed the following and none of it works. It has to use "" double quotes ! $XPost...

Send datas to JSON with jquery

javascript,jquery,json,post
i'm coding a script that send datas (nickname & score) to a JSON file in Jquery but i'm having trouble to make it work. Here is my Jquery : function addInfos() { var nicknameSubmit = $(".nickname").val(); var scoreSubmit = $(".score").val(); var newScore = { Nickname : nicknameSubmit, Score : scoreSubmit...

Alternative to using mechanize to fetch data?

python,post,python-requests,developer-tools,mechanize-python
Currently, I am using mechanize to fill up a form and send a POST request, then I am doing a regex search on the response to get the data ( a floating point number). Is there any way I can do this by just sending a POST request? I know...

JSF link to external site without showing username and password in the URL

jsf,post,single-sign-on,commandlink
I was able to do a SSO(Single sign on) on click of external link from the code below. SSO works but username/password is seen on url. https://example.org/index.php?userLogin=user1&userPassword=pass123 <h:outputLink styleClass="ui-menuitem-link ui-corner-all" value="https://example.org/index.php"> <h:outputText value="Ext Tool" /> <h:outputText styleClass="ui-icon ui-icon-suitcase" style="float:left" rendered="#{userBean.in}" /> <f:param name="userLogin" value="#{userBean.user.eUser}" /> <f:param...

request.POST empty for Content-Type: multipart/form-data; boundary=xYzZY

django,post,request,content-type
[SOLVED] Please see my answer. Any POST request sent with the Content-Type: multipart/form-data; boundary=xYzZY results in the request.POST QueryDict{} to be empty. Changing the Content-Type to multipart/form-data also results in the same error. Removing the Content-Type altogether results in the values getting passed correctly, and I can access them in...

Python POST request can't find data attribute

python,django,post
I'm trying to write a POST request to my Django REST API in Python, but it can't seem to find an attribute in the data section of the request. Here's the function that handles the request: def post(self, request, id, format=None): obj = self.get_object_or_404(id) operation = request.POST.get('operation', None) if operation...

send POST request in PHP to pushbullet API 401 error

php,api,post,pushbullet
I'm trying to send simple push notifications with pushbullet just through using the email and sending those to the linked account to avoid needing account data. (see reference here: https://docs.pushbullet.com/#pushes) Therefore I'm using a non cURL-method in php that I (not only) found here: How do I send a POST...

Using Python Script to post data to web server

python,python-2.7,http,post
I am using Python 2.7.3 and I am trying to post data to my local web server. The data I am posting is temperature readings from my raspberry pi. I know the url is right because if I use the postman chrome plugin the data is successfully posted and I...

Removing date from pages not posts in search results (Wordpress)

wordpress,search,post
I'm trying to remove the date from pages only in search results. I found this: https://wordpress.org/support/topic/search-results-hide-date-for-pages-not-posts - however, I can't seem to figure out where to add it without causing errors. I also found an answer suggesting just removing the date code from page.php but I don't have that in...

Java Servlet - get parameters with same name

java,java-ee,servlets,post
I know that I can get parameter like: HTML <input type="text" name="field" value="test"> Servlet String field = request.getParameter("field"); But what if I have multiple input with same name like: HTML <input type="text" name="line[]" value="test1"> <input type="text" name="line[]" value="test2"> <input type="text" name="line[]" value="test3"> In PHP I can just use name="line[]" to...

Downloading a file sent in response to a POST request via nodejs? (no AJAX)

javascript,node.js,post
I have a nodejs server that from time to time submits a post form to an external, third party server that I have no control of - therefore I am unable to perform an AJAX request. I can't use get either. When I run the code in a browser, the...

Angular cross-domain post: fails using some browsers

javascript,angularjs,post,cross-domain
I have a cross-domain POST request in Angular (1.4.0), which works using Chrome (43+) and Firefox (37+) after I remove the Content-Type header. But it fails when using Safari, or Safari/Chrome on the iPhone/iPad. The error message then is: Failed to load resource: Request header field Content-Type is not allowed...

Wordpress - Attach uploaded image to post

php,wordpress,image,post,wordpress-plugin
I'm using the Wordpress plugin Alchimist Ajax Upload to upload an image via Ajax, the post is created after submission of the form and after uploading the unattached images. My problem is that I need to attach those uploaded images to that created post. I have the post ID and...

JSP form sending data including files in servlet

java,jsp,servlets,post,get
I am tryig to send some data from jsp form to a servlet. All my data are type="text" except from one that is type="file". I know that if i want to send the data to my servlet, i have to use request.getParameter(...). (My data) In order not to be null...

How to POST - API in thingspeak.comusing urllib in Python

python,api,post,urllib
I am working on a project where I have to get data from a website and then post it to a different website. At the moment I am still new, so I am using a thingspeak.com account to experiment on posting, and I am also following the same example used...

Web API translating input into random int

c#,post,asp.net-web-api,json.net
not sure whether the subject is the best description for this problem but I am getting an unusual problem where I have a single Web API operation and a single field on a request and for some odd reason the value gets manipulated. Depending on the input this gets converted...

How can I post form into same php page and intercept it?

php,forms,post
I'm trying to submit a form to same page, so I want submit data, and then save into DB... And then update my page with new data... I do it in this way: <?php if (isset($_POST["matricola"]) && isset($_POST["pc"])){ echo "QUI"; $conn = dbConnect($USERDB, $PASSWORDDB, $NAMEDB); //seleziono il database e mi...

How do you Request[“”] with a Dynamic Variable? Request[“@Variable”]?

c#,asp.net,post,razor,request
I'm building a form, where the number of questions, or inputs on the form varies depending on the value in a database.Each input on the form is a radio type. The name of the tags are dynamic and are loaded from the database using @db.row.questionID which would look something like:...

Sending data from a client to a server by means of a http post

php,python,post,python-requests
I'm trying to send data from the client to the server. The client runs a simple python script that uses the 'request' library. The server side consists of another simple php script using the $_POST. I need the webpage to update depending on the data that is given through the...

How to post a search form using jQuery/Ajax and put results in a div?

javascript,jquery,ajax,forms,post
I'm trying to post a search query to a local server and return the results into a div using Ajax. I'm following the formula from the documentation but cannot get an output. Also not getting any console log errors. The source code is from: Post a form using ajax and...

kendo ui grid prevent posting data on client side validation error

post,kendo-ui,kendo-grid,preventdefault
I have done some clientside validation. parameterMap: function(options, operation) { if (operation !== "read") { var valid = customValidation(options); console.log(valid); if (valid) { return JSON.stringify({ discountPromotionViewModel: options }); } } }, And if the customValidation method returns false i don't want the grid to post the data. Now it posts...

how pass value from select option to other select option in other form

php,html,forms,select,post
I want to move data from one form to another form with similar inputs in diferent pages, as I do to make the select option to acquire the same value when I submit form1 and form2 sees. <form action="form2.html" method="post"> <select name="selection" > <option value="" selected="selected">select one</option> <option value="1" >one</option>...

How to work arround php notice raised incorrecty when posting a string that begins with an @?

php,post,curl,encoding
I want to perform a post request using PHP and Curl. This is how I set my post parameters: curl_setopt($ch,CURLOPT_POSTFIELDS,array('name'=> $name)); When the String in $name happens to contain an @ character at the beginning I get the following error. [8192] curl_setopt(): The usage of the @filename API for file...

Insert Values in Database with id auto increment

php,mysql,post
I want to upload an image to the database and add the values id, markerID (String, not unique), imagename (text), note (text) and likes (int) to my table pinboard. This is my php Scirpt: if (isset($_POST["image"]) && isset($_POST["markerID"])) { $data = $_POST["image"]; $markerID = $_POST["markerID"]; $ImageName = $id.".png"; $filePath =...

PHP - mysqli - check the table if a value is already inserted

php,mysql,post
I Am trying to check if the REF number added when creating a new mysql row is already in use. I don't have problems in adding a new row however, the script does not check the database first. if ($_POST['add_new_bus']){ if (($_POST['add_ref'] != "")&&($_POST['add_name'] != "")&&($_POST['add_address'] != "")&&($_POST['add_area'] != "")){...

Passing an array in JQuery with a POST and reading it with Flask

javascript,jquery,post,flask
I try to store the data from a graph with jQuery but I always get a 400 Bad request. The problem is the data_series variable isnt just an array of integers but much more. This is unchangeable since it is necessary for my chart generation to be like this. A...

How to execute POST using CURL

post,curl,asp-classic
How to execute POST using CURL, i have this basic .asp that receives the data via POST and show the result in .JSON format. <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% Response.ContentType = "application/json" Response.Write("{ ""responseCode"": " + Request("responseCode") + ", ""publication_id"": " + Request("publication_id") + ", ""version"": " + Request("version") + "}") %>...

How to send mix of GET and POST in python

python,post,get,request,python-requests
I'm trying to send a mix of GET and POST to a URL using requests module. Is there a way to do this? What I 've tried is the following: import requests payload = {'test': 'test'} r = requests.post("http://httpbin.org/post?key1=val1&key2=val2",params=payload) print r.text but when I see what is actually being sent...

PHP Session data lost after jQuery POST request

php,session,post
I know that this question seems like it is the same that it has been asked a lot of times, but please keep reading. The problem is, like the title suggest, the session data is not being saved in my PHP scripts when I make a POST request to another...

attempting to alter data via POST and ajax in django not working

jquery,ajax,django,post
I want to be able to click a button that will change data using ajax (jquery). Here is what I am doing now: html/js: <button onclick="alterData('some sort of data')">click me!</button> function alterData(someInput){ $.ajax({ type: 'POST', url: '/home/alter/', data: {someInput: someInput}, }); } urls.py: urlpatterns = [ ... url(r'^alter/',views.alter), ... ]...

post data in an array in php

php,arrays,post,curl
I have collected data and created and array : Array ( [0] => Array ( [id] => 1 [name] => Martin [surname] => test [email] => [email protected] [dob] => 2015-02-24 ) [1] => Array ( [id] => 2 [name] => Kary [surname] => paulman [email] => [email protected] [dob] => 2015-06-26...

ajax post external php file return always false

php,jquery,ajax,json,post
my ajax code is : <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script> $.ajax({ type: "GET", contentType: "application/json; charset=utf-8", url: "http://www.mp3-y.com/yt_output.json?vid=d9o8FCl4HOk", dataType: "json", success: function(msg) { alert("Success"); }, error: function(xhr, ajaxOptions, thrownError) { alert("error"); } }); </script> PHP Code is : header('Content-Type: application/json'); $arr=array("Download" => "http://www.exemple.com/file"); $json =...

ajax post request to php without response (isset every time flase)

php,jquery,ajax,post,request
I'm using jquery multiselect plugin and I want to perform an ajax request on a select/deselect event. My problem: When I send the request to the php file, ISSET(VAR) returns every time false so that I can't pass variable to the php file. But Firebug extension for Chrome/Firefox shows me...

HTML form post call hidden field

javascript,html,post
I am trying to do a post call for the login page. User manually enters username/password. However, I want the below field to be set name=username when user inputs his/her username. I have these fields below. And I have a hidden field and would like to replace the username bit...

Post Routes Slim PHP

php,post,forum,slim
I am trying to create a forum for my website. I have been running into issues with posting data. I planned for it to be so that when the user clicks on a category, it POSTs the category's id so I can then get that id and then list all...

Change value of a form stored in a variable

javascript,jquery,forms,post
How do you change the value of an input field of a form that is never printed to the HTML of the page? (I don't want to add it to the html of the page) I'm not sure if I even have to use the $form notation vs. form I'd...

Recieve data back from HttpURLConnection post

php,android,post,httpurlconnection
I am currently posting data to a php page using this function: private void postData(HashMap<String, String> postDataParams, String urlString) { //I'm using HTTP currently but we should use HTTPS but we need an SSL certificate URL url; String response = ""; try { url = new URL(urlString); HttpURLConnection conn =...

How send Sever Sent Events on POST using PHP?

php,post,server-sent-events
I'm just starting with PHP and Server Sent Events. After checking out a couple of articles,like the W3C and HTML5Rocks one I was able to get something off the ground very fast. What I'm trying to do now is sending a Server Sent Event when my php script receives a...

POST with koa (nodejs)

node.js,post,koa,koa-router
I keep annoyingly on finding examples that only parse JSON sent. I am trying to find an example where a POST comes from a form. <form class="form-horizontal" role="form" action="/" method="post"> <input type="text" class="form-control" name="email" placeholder="[email protected]"> <input type="text" class="form-control" name="password" placeholder="password"> <button type="submit" class="btn btn-default">Sign in</button> </form> As you can see...

REST API design for cloning a resource

api,rest,post,yaml,webdav
I am writing a YAML document using swagger to design a RESTful API method for cloning a resource. I have a few options and don't know which would be best. Please can someone advise? Options: Relinquishing the responsibility of cloning the resource object to the consumer (where the consumer assigns...

Why I cannot get action from ajax post request

javascript,jquery,ajax,post
Here is my code: $(document).ready(function(){ $("#mainbutton").click(function(){ $("#ajaxform").submit(function(e) { $.ajax( { action : "mainbutton", url : "userctrl", type: "post", data : $(this).serializeArray(), success:function(data, textStatus, jqXHR) { alert("success"); }, error: function(jqXHR, textStatus, errorThrown) { alert("error"); } }); }); $("#ajaxform").submit(); //Submit the form }); }); I try to set action in this post...

POST data to controller with ASP.NET MVC

c#,asp.net,asp.net-mvc,post
I am using ASP.NET MVC with C# and pure bootstrap. One of my views contains a label, text input box, and a submit button: @{ ViewBag.Title = "BinSearch"; Layout = "~/Views/Shared/_LayoutSearch.cshtml"; } <h2>BinConfig Search</h2> @using (Html.BeginForm("FiEdit", "EditConfigController")) { <div class="form-group"> <label for="issuerKey">Issuer Key</label> <input type="text" name="key" /> <input type="submit" class="btn...

Mule Server 3.6 > Anypoint Studio > Request Connector

json,post,mule,esb,mule-studio
How do I set the Request Connector to send Raw JSON data using POST method? On my Set Payload transformer I have this: #[{ "productId": #[sessionVars.productId] }] When I run my Mule App, I get the following error: Error sending HTTP request. Message payload is of type: String What am...

selects and POST

php,select,post
I've build a little quick and generic pair of select for my month and year for card payments. if goes a little something like this: <select name="expire_month" class="mand"> <?for($month=1;$month<=12;$month++){ echo"<option value='".$month."'>".str_pad($month,2,"0",STR_PAD_LEFT)."</option>"; }?> </select> <select name="expire_year" class="mand"> <? for($year=date('Y');$year<=((int)date('Y')+5);$year++){ echo"<option value='".$year."'>".$year."</option>"; }?> </select> How...

Not getting any value in $_POST after from submit

javascript,php,jquery,forms,post
I am facing a problem in my local wamp server while submitting a page in PHP I am using post method and after submitting the form I am not getting any values in $_POST. I searched a lot on internet but did not get any good solution. Here is my...

Recreating Ajax POST

javascript,ajax,post
I want to recreate Ajax POST which I can peak via Chrome's debugger. I created post like this: $.ajax({ method: "POST", url: url, contentType: "application/json; charset=UTF-8", data: { "defaults": "default", "culture": "en-US", "skip": 20, "take": 20, "query": "", "filters": [], "fulltext": [], "sorting": { "field": "ModifiedOn", "asc": false } }...

RoR security with POST method: where - how occurs the validation - howto optimize?

ruby-on-rails,validation,security,post
In some forums I made the experience that newbies are sometimes getting not very helpful answers (to describe my former experiences nicely) when asking questions about things that are obvious to more experienced users. So please excuse as I fear this is one of those questions - nevertheless I want...

WordPress post details

wordpress,post
I have WordPress page in which post titles of a single category are showed. When the user clicks any of the post a new tab should open and show the details of the post on which the user clicked how will I do this.

php - Receive webhook data from hipmob

php,post,request
I'm trying to receive a webhook from hipmob (live chat app) that should be triggered at a chat event. Documentation: https://www.hipmob.com/documentation/chat-events.html I've been following How to catch the HTTP POST request sent by a Shopify Webhook , and i have to say that i am completly new to this. I...

have_post() does return null value in wp

wordpress,post
I used the following code in my page template: <?php while(have_posts()):the_post(); the_content(); ?> But nothing is displayed. The loop is not working. I'm sure that, there is sufficient information as content in my template page....

cleaning a post URL from an Array

php,post,curl,clean-urls
Here is my code : $query = "SELECT first_name, surname, email FROM app2"; $result = mysql_query($query) or die(mysql_error()); $url = "https://test.com?"; // Where you want to post data while($row = mysql_fetch_array($result)) { $input = ""; foreach($row as $key => $value) $input .= $key . '=' . urlencode($value) . '&'; $input...

Is sending data using $_SESSION instead of $_POST a good thing?

php,post
I saw many , many questions about sending data using $_POST without form. Let's say that we receive from another web (e.g. through their API) and the page that we told the API the return the data is receive.php and we want that data to be accessible from every page...

Php : Post a list of checkboxes

php,html,post
After a SQL request, I obtain a form which contains a list of data, with checkboxes at the end of each line. The goal is the following. If the user checks some of them, the line will be deleted in the database when the form will be submitted. I name...

Radio Button INPUT not sending the input to the PHP code

php,forms,post,radio-button
The code is given below shows the errors : <div class="field form-inline radio"> <form method="post" action=""> <div> <label><input type="radio" name="eatable" value="fruit_in"/> Fruit</label> </div> <div> <label><input type="radio" name="eatable" value="vegetable_in"/> Vegetable</label> </div> <div> <label><input type="radio" name="eatable" value="bread_in"/> Bread</label> </div> <div> <label><input type="radio"...

Sending Post method manually using Python

python,post
I want to send a post request using python for some specific reason. To be more specific i want to sent '12064608' into "code national" in this website http://bac.menara.ma/ministere/ . The problem is that if I send it manually the respond is not the same as if we send enter...

Uploading GPX file to Strava API with GTMHTTPFetcher POST in Objective-c

ios,objective-c,http,post,xmlhttprequest
After exploring the use of the Strava API (http://strava.github.io/api/v3) with GTMHTTPFetcher for 2 days I am now completely stuck at uploading a .gpx file to my account so I made the decision to ask for an answer here. I successfully received and stored an access token with the necessary 'view_private,write'...

Enter Database PHP connection with userform [closed]

php,authentication,post,mysqli
I'm trying to enter a username into a text field and click submit then this should connect me to my database. A) What is wrong with the code below: <!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <?php // define variables and set to empty values $nameErr...

How to use button instead input, style input?

css,forms,jsp,servlets,post
My form: <form method="POST" action="AController"> <div class="userInput"> <table class="userInput"> <tr> <td><input type="text" id="username" name="login"></td> </tr> <tr> <td><input type="submit" id="submitRegInput" name="reg" value="Submit"></td> </tr> </table> </div> </form> I'm trying to style <input type="submit" id="submitRegInput" name="reg" value="Submit"> like this: #submitRegInput { background: no-repeat...

Jsoup Login aspx Digikey

java,parsing,post,login,jsoup
I have a problem with connect to Digikey.it with jsoup. I need login with my account and use cookies, but when i execute post, do not login. This is my code: String UrlLogin="https://www.digikey.it/classic/RegisteredUser/Login.aspx?ReturnUrl=%2fclassic%2fregistereduser%2fmydigikey.aspx%3fsite%3dit%26lang%3dit&site=it&lang=it"; Connection.Response response = Jsoup.connect(UrlLogin) .method(Connection.Method.GET) .execute(); Document loginPage = response.parse(); response = Jsoup.connect(UrlLogin)...