post

How do I send a very simple status update with the iPhone SDK?

Hi, I'm building an app that will allow the user to send a status update to twitter about something they have done in the app. What is the easiest way to authenticate the user in the settings and have the app update their status when they tap a button? Any help/ sample code is greatly appreciated. -GVG PHP/ iPhone SDK Developer http:/...

PHP $_GET and $_POST undefined problem

I'm new to PHP so I apologize if this is a simple problem... I am moving a PHP site from one server to another. The new server is IIS 7.0, PHP 5.2.1, with short open tag turned "On", and I don't know how the original server was set-up (I was just given the code). The following is the very first section of code on one of the pages: <?...

php file download: strange http header

i'm builing this php script which displays a given folder 's children folders and files. Files ought to be downloaded. In order to disclose as little information as possible, each item in the directory is a form with a submit button that contains the html markup. The send method is POST. IF i click on a directory, it opens that directo...

post html form fields to google map and get back result page

Hi, I'm not an expert but i know a little about HTML forms, here is my problem i want to create a simple html page with form for my customers to enter a gps values to maps.google.com and get back the result page embedded in the same html here is the exact format of my string as an example : 32 06 12.66N, 20 12 22.65E notes that th...

Get size of POST-request in PHP.

Is there any way to get size of POST-request body in PHP? ...

how to check when field enter/return has been pressed on?

I have multiple fields, typically enter will be pressed on one of the two main ones. I want to know which field enter has been pressed on, how do i do this? (i dont know much JS) Possible Duplicates http://stackoverflow.com/questions/756786/javascript-capture-key http://stackoverflow.com/questions/1235716/disable-keyboard-e...

Extracting information from dynamic list to post with jQuery?

I have a dynamic list of items that will be used to POST information to the backend using AJAX. <a href="...">Item 1</a> <a href="...">Item 2</a> <a href="...">.....</a> <a href="...">Item n</a> I've decided to include a css class and a hidden input on each item so that I can easily assign the handler (using the css class) and so that...

Merging File and Post data in PHP

At work I've been dealing with some complex forms (publish pages of Symphony) that contain multiple image upload fields. I need a way to quickly merge $_FILES with $_POST, unfortunately you cannot simply merge the two with array_merge because they don't follow the same structure. Basically if you have $_POST[a][b] it would be $_FILES[a]...

How can I programmatically get the image on this page?

The URL http://www.fourmilab.ch/cgi-bin/Earth shows a live map of the Earth. If I issue this URL in my browser (FF), the image shows up just fine. But when I try 'wget' to fetch the same page, I fail! Here's what I tried first: wget -p http://www.fourmilab.ch/cgi-bin/Earth Thinking, that probably all other form fields are required ...

AJAX POST and Plus Sign ( + ) -- How to Encode?

I'm POSTing the contents of a form field via AJAX to a PHP script and using Javascript encode(field_contents). The problem is that any plus signs are being stripped out and replaced by spaces. How can I safely 'encode' the plus sign and then appropriately 'decode' it on the PHP side? ...

GET vs. POST ajax requests: When and how to use either?

What are the strengths of GET over POST and vice versa when creating an ajax request? How do I know which I should use at any given time? Is it a security-minded decision? Also, what is the difference in how they are actually sent? ...

Passing JSON-encoded variable from PHP to Javascript via POST

I have an multi-dimensional array that I want to send to a PHP script with a Javascript that parses the JSON data and plot it on Google Maps. I'm trying to simulate it using forms: <?php $jsontest = array( 0 => array( 'plate_no' => 'abc111', 'longlat' => array(121.003895,14.631563), 'info' => 'first item' ), 1 => array( 'pla...

On $.Post in Json used in ASP.NET MVC 1.0 i am getting exceed maxlength error

i am getting this error given below i guess its a max length exceed error when i call a action in a controller using $.post method can you tell me what setting should i put to increase the length System.InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string...

Jquery .post () giving error message "missing : after property id"

I have written a form using the jQuery .post() function to post the data to a php file. The error I keep getting is "missing : after property id". Any help would be appreciated. Here is the form code: <form id="ev-form" name="ev-form" action="/new_event_submit.php" method="post"> <fieldset> <ol> ...

jQuery Bookmarklet with $.post() or $.get()

Hi. I've built a Bookmarklet based on Ben Almans jQuery enabled Bookmarklet. The bookmarklet creates a an fills it with some data from a $.get('http://mydomain.com/request/') Request. It works as long as I am on the same domain, but if I try to run it on another site, e.g. google the $.get() does not work. I've also tried $.getJSON()...

Spring 3.0M4 and passing objects as parameters to POST

Hi guys, I'm quite sure this has to be in the docs somewhere, but I've looked for days and haven't spotted it. I'm probably staring myself blind when it's right in front of me, so sorry for asking an abvious question, but.... @RequestMapping(method = RequestMethod.POST) public ModelAndView post(@ModelAttribute("user") User user) { Mo...

in Struts2, to submit values by postwith using an action, method

Hello, I'm from South Korea :) I have a question, but I couldn't find a solution for my problem in Korean web community. <s:form name="form1" method="post" action="products" theme="simple"> <s:hidden name="code" value="%{code}"/> <s:submit type="button" name="method:selectSale" value="goPage"/> </s:form> This code has no problem....

[Struts2] using anchor instead of submit (post)

I have a question, but I couldn't find a solution for my problem in Korean web community. <s:form name="form1" method="post" action="products" theme="simple"> <s:hidden name="code" value="%{code}"/> <s:submit type="button" name="method:selectSale" value="goPage"/> </s:form> This code has no problem. But, I want to use "anchor" in...

Retrieving XML results of a POST command

As part of my GWT application I have a POST method that accepts a file (so I need to use form submission) and returns an updated list of elements as xml. I use the GWT formPanel to do this. The formpanel redirects the results of the post into a separate iframe. Using the dom inspector I can see that the results are actually there. Unfort...

Javascript Function With JQuery POST Always Returns undefined

Hi Everyone, I have no idea what's going on here and was hoping someone could help, I'm sure it's something easy going on that I'm just missing. I have a function in javascript that has a JQuery post inside of it. I would like to return the results of the post which is just text and put it in a variable. The number is coming back cor...