post

ASP.Net MVC - post from one controller to another (action to action)

Hi! Is is possible to do a post from an Action "Save" in a controller "Product" to an Action "SaveAll" in a controller "Category"?? And also passing a FormCollection as parameter Thanks!! ...

Post data to aspx page from iphone application

I am developing a application. In which i am posting a image to .aspx page.The HTML for the page is as below. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&gt;"&gt; <html xmlns="http://www.w3.org/1999/xhtml&gt;"&gt; <head><title> Untitled Page </title><link href="...

Finding part of a string that a user has sent via POST

My users can send links from popular file hosts like Rapidshare, Megaupload, Hotfile and FileFactory. I need to somehow find out what filehost they sent the link from and use the correct class for it appropriately. For example, if I sent a Rapidshare link in a form on my web page, I need to somehow cycle through each file host that I al...

$_POST to 2 pages

I have a page with 2 frames. In the top frame is a form called invoice.php. In it you type in an invoice number and then post it. I am wanting this post to be sent to 2 pages that will open in both the top and bottom frames. The top page is called invoicelab.php and the bottom is called invoice2.php. The information that I am posting is ...

jQuery on click event send POST request

Trying to send POST request on click event using jQuery with no luck. Here is what I use: <script type="text/javascript"> $('#taxi_update').click( $.ajax({ 'type':'POST', 'data':'id=17446&chru=0', 'success':function() { ... }, 'error':function(){ ......

ASP MVC 2: Error with dropdownlist on POST

Okay i'm new to asp mvc2 and i'm experiencing some problems with the htmlhelper called Html.dropdownlistfor(); I want to present the user a list of days in the week. And i want the selected item to be bound to my model. I have created this little class to generate a list of days + a short notation which i will use to store it in the d...

Python Mechanize unable to avoid redirect when Post

I am trying to crawl a site using mechanize. The site provides search results in different pages. When posting to get the next set of results, something is wrong and the server redirects me to the first page, asking mechanize to update the SearchSession Cookie. I have been debugging the requests using Firefox and they look quite the sam...

PHP Form POST to external URL with Redirect to another URL

So, what I am trying to accomplish is have a self-posting PHP form, POST to an external page (using CURL) which in turn redirects to another page. Currently, what is happening is that once I click "Submit" on the form (in contact.php) it will POST to itself (as it is a self-posting form). The script then prepares the POST using CURL an...

POST variables to web server?

Hello I've been trying several things from Google to POST data to a web server, but none of them work: I'm still stuck at how to convert the variables into the request, considering that the second variable is an SQL query so it has spaces. Does someone know the correct way to use a WebClient to POST data? I'd rather use WebClient becau...

Is there an ASP.NET event that occurs after postback, but before the page is destroyed/recreated?

My ASP.NET form contains a collection of dynamically-created radiobuttons that are created and configured in the Page_Load event handler. Normally, I process postback data in the Page_Load handler, using the condition: if (IsPostBack) However, since the controls that I need to access are created IN the Page_Load handler, the postba...

jQuery - Ajax post result in html displaying in wrong position

I have a site with user posted threads that get voted on (up or down), and a vote count is displayed next to each thread. The voting up and down process is being done through jQuery/Ajax, and using something like this: $.ajax({ url: 'vote.php', success: function(data) { $('.result').html(data); } }); the html of the vote c...

Can you do a struts2 action redirect using POST instead of GET?

<action name="actionA" class="com.company.Someaction"> <result name="success" type="redirect-action"> <param name="actionName">OtherActionparam> <param name="paramA">${someParams}</param> <param name="paramB">${someParams}</param> <param name="aBoatLoadOfOtherParams">${aBoatLoadOfOtherParams}</param> </result> </action> In th...

Problem passing strings with PHP post

Hi Guys, Basically I'm developing a (very) simple search engine. You can enter a search term and you are taken to the results page - which works fine. However on the results page, I have a button that will take you to the next 10 results: where $term is the $_POST['term'] value. echo "<input type='hidden' name='term' value='" . $term ....

POST and multiple submit buttons on form (iphone)

NSString *reqURL = [NSString stringWithFormat:@"%@/login",SERVER_URL]; NSMutableURLRequest *req = [[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:reqURL]]; [req setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"content-type"]; NSData *myRequestData = [NSData dataWithBytes:[@"username=whate...

Help with cURL in Python

Hi, I have to POST a request to a server. In the API documentation of the website there is this example that uses cURL in PHP: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://api.website.com'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "request=$wrapper"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, ...

A simple GET with Grails

I have built a simple Grails app, with a domain-class and its controller (with the default scaffold functionality). I want to use this for an Android app. I had to get my objects in the JSON format, and thanks to stackoverflow it's been easy ;) Now I have to put data. I should make a POST call to http://localhost:8080/MyApp/person/sav...

curl post picture multipart/form-data, php cURL need help!

I'm trying to upload a picture to a specific website using php cURL but I don't really understand what parameters do I need to send because the data looks a bit weird . Here is what i got with the http analyzer Type : multipart/form-data; boundary=---------------------------182983931283 -----------------------------182983931283 Conten...

unable to use html form post in php

Hello i have an html form and i'm posting data but i'm unable to get the posted data on a php page (same page) can you please help me. thanks in advance <div class="left"> <form name="form_signin" method="post" onsubmit="return signinValid();" > <table> <tr> <td> Email : </td> ...

Getting $_POST variable from table

I'm trying to build a sort of resource allocation form. I'd like to be able to print a table from a database, and then allow users to click on each cell that they would like to reserve. Also, being able to drag and select multiple cells. Then send all of this via $_POST to another php script. Problem is, I have no idea where to start. ...

C# dynamically change iframe using post method

I'm a newbie to iframe. I have a page that needs to call an iframe at another subdomain passing lots of data. I'm wondering if it's possible to submit the iframe call using a POST instead of GET. Thanks in advance ...