post

jQuery.post(), PHP and redirects

THIS PROBLEM IS NOW SOLVED. THANK YOU TO EVERYONE WHO REPLIED. Hello, I am trying to solve a problem that I may have approached from the wrong direction, so maybe someone could suggest a better solution. I am writing a little web app for work, that has a search function. When user submits a search string, form gets posted to a CodeIgn...

Howto: pass a username and password back into a webview securely

I have a user's name and password stored in their preferences. How do I go about passing it back into the webview in a secure way? I know if I do this it will work, but it just seems bad. There has to be a better way to post the variables. webview.loadUrl("http://mysite.com?name="+username+"&password="+somepassword); I've been loo...

$_POST values from a the second dimension of an array

Using PHP. I'm trying to retrieve $_POST values from a the second dimension of a two dimensional $_POST array without actually knowing the names of the values being posted. Here is what I have; it doesn't work. foreach($_POST as $k=>$v) { $$k=$v; if (is_array($k) == true) { foreach($k as $value) { echo $v...

unable to get response headers using apache httpclient 3.0.1

Hello, I have created a sample application in Java with sending POST request to a asp.net web page "mypage.aspx". This apsx page sending back some response and 1 headers to check its valid or not. Aspx page set headers like Response.AddHeader("my-source", "lmenaria.com"); In my Java program: Header[] headers = method.getResponseHe...

modifying the POST data sent to a limited PHP form.

I am using a CMS-like system, phpBMS, which defines certain fields and ways to generate a form. Here is the sample form provided. It is possible to include javascript files and incorporate script into the form as well. I would like to know if it is possible, within the confines of the framework I am working with, to send additional dat...

How to handle post request in python

Hello, how can I handle post request in python script? Somewhere I want to send it from ajax to the python script with given params. What's correct way to handle that data in python? ...

JQuery Ajax error

I am posting some form values through ajax to a PHP script. The PHP echoes 1 if it's successful and 2 if not. The PHP seems to be working ok but I am being redirected to the url in the javascript and shown the number 1 on a blank page instead of it being echoed back to the ajax request. This is my javascript, can anyone see where I am ...

How to send dinamically generated variables via ajax, using post method.

Ok, the title isn't so easy to understand, i think. First fact: I'm new to ajax. Now on with the show :) I've an html page wich contains a table, some rows and inside any row i checkbox. When i select a checkbox i will to delete the message BUT only when i click a red-button-of-death. Example table    tr(unique_id)       td [checkbox...

Content of form element not being saved to database while others are

I am working with a CMS like system, phpBMS, which defines a certain way of making forms, and defines the form elements to be used in such forms. This is an example of the form template, and these are the fields that are defined. Generally, it is pretty simple. If you have an inputField with the id of say, 'name', the content of that f...

Authenticated HTTP POST with XML payload using Python urllib2

I'm trying to send a POST message with a purely XML payload (I think) using urllib2 in IronPython. However, everytime I send it, it returns Error code 400 (Bad Request). I'm actually trying to mimick a Boxee remove queue item call for which the actual data packets looks like this (from WireShark): POST /action/add HTTP/1.1 User-Agent:...

Why does HttpClient throw a SocketTimeOutException when executing POST

I have code similar to the following: try { HttpPost post = new HttpPost(httpsUrl); setHeaders(post); HttpEntity entity = new StringEntity(request, "UTF-8"); post.setEntity(entity); HttpResponse response = httpclient.execute(post); String result = EntityReader.readContent(response.getEntity()); checkAnswer...

Is there an easier way to post an image to server side with flash?

I saw this post and don't understand why it's so struggling to post an image to server side with flash, or is it just the poster didn't do it in a proper manner ? So far my progress is: var ba:ByteArray = (new PNGEncoder()).encode(vidBmpHolder); var request : URLRequest = new URLRequest("http://localhost:3000/doodles"); request.method ...

Dynamic SQL Quieres Naming Post keys

It is bad to name my form fields the same as my column names? I mean do people really do: <?php $id = intval($_POST['user_unique_key']); $name = mysql_real_escape_string($_POST['name_of_user']); $email = mysql_real_escape_string($_POST['user_mail_thing']); $address = mysql_real_escape_string($_POST['user_place_of_living']); //.......

Django POST sub-dictionaries

I'm making the following request through command-line cURL: curl -X POST http://localhost:8000/api/places/ -vvvv -d "place[name]=Starbucks" However, when I try to access the parameters by calling request.POST.getlist('place') I get an empty array as a response. How can I access the sub-dictionary which I can then pass to the ORM? ...

Problems storing content from a form via CMS

I have a MySQL table called sales, containing the fields product, quantity and paid. I am using a CMS like system which has a custom way of doing forms, and custom formfields to use. As far as I can tell, the id given to a formfield is what is used as the table name to insert into. My current form I am using is as follows: <?php ...

Getting Permalink from Post ID in Wordpress 3

I'm building a small list of recent comments, and would like to make links to the actual posts that the comments were placed on. Unfortunately, there is no comment_permalink or post_permalink that I can find, so I thought maybe there would be a get_permalink() function, but again, none that I could find on http://codex.wordpress.org/Func...

trying to post password via curl but getting a blank page instead of content

i want to post my password to a page via curl and grab the result, result should be a page with a content. here is my script function f($password){ $url="http://upload5.fileflyer.com/view/7MSG4GUCYVN7E"; $useragent="Opera 9.7 (Windows NT 6.0; U; en)"; $ref="http://fileflyer.com/view/7MSG4GUCYVN7E"; $data = array()...

why jquery can't return string/text ?

default.aspx <button id="getGrouper">GetGroupers</button> <script type="text/javascript"> $(document).ready(function () { $("#getGrouper").click(function () { $.ajax({ type: "post", url: "Groupers.aspx/groupers", data: "{pid:25}", ...

What's the difference between POST and raw POST in PHP at all?

I have this question after reading the answer here, what's the difference at all? Is it possible to submit raw POST with html ? ...

order of ajax post requests getting mixed up

I have a page where the user sends data (via ajax) to a php page, which inputs it to a database. However, occasionally, the requests are getting out of order when I check the database. Basically, the user inputs events as they occur and hit submit to send it off to the database. Occasionally, the user will record 2 events before sending...