post

Simple POST random number issue in PHP

Ok I am trying to make something to ask you random multiplication questions. Now it asks the questions fine. Generates the random questions fine. But when it reloads the page the random numbers are different... how can I fix this? <?php $rndnum1 = rand(1, 12); $rndnum2 = rand(1, 12); echo "<h3>". $rndnum1 . " x "; echo $rndnum2 . "...

weird problem with load () or live () !!

I load a page with load () and then I create dinamically a tag. Then I use live() to bind a click event and fires a function. At the end a call unload (). The problem is that when I load the same page again ( without refresh ) when on click the function will be fired twice. If I exit again (again with unload ()) and load the page aga...

Is info still encrypted if I use a <form action="https"> from a regular http page?

Say I'm at the url http://mysite.com/form.html. When viewing source, I see <form method="post" action="https://mysite.com/process"&gt; <input type="text" name="user" value="information"> <input type="submit"> </form> If I hit the submit button, will the form information be encrypted when it's sent to the process page/controller? ...

jQuery Validation plugin results in empty AJAX POST

Hi, I have tried to solve this issue for at couple of days with no luck. I have a form, where I use the validation plugin, and when I try to submit it, it submits empty vars. Now, if I remove the validation, everything works fine. Here is my implementation: $(document).ready(function(){ $("#myForm").validate({ rules: { field1: {...

How to create PHP post\get API (EAZY LAZY and PROTECTED way)?

How to create PHP post\get API? So tooday I have crapy mix of PHP and HTML and JS. I need to open some of functions I use in my site to Developers so thay will be able to use my site data in their APP's. What is the EAZY LAZY and PROTECTED at the same time way to do such thing? ...

Android, sending XML via HTTP POST (SOAP)

Hi, I would like to invoke a webservice via Android. I need to POST some XML to a URL via HTTP. I found this snipped for sending a POST, but i dont know how to include/add the XML data itself. public void postData() { // Create a new HttpClient and Post Header HttpClient httpclient = new DefaultHttpClient(); ...

How can I loop through posts as well as child pages to display them all by date in Wordpress 2.9

Some background info -- In wordpress I have my portfolio as a parent page with each item of work a child page. I also have a blog. I want to display the most recent 6 items on the homepage whether they are from my portfolio or my blog. I have a loop that displays the posts and on another page I have a loop that displays the child pa...

Will data order in post form be the same to it in web form?

Assuming there are 5 inputs in web form <input name='the_same[]' value='different' /> <input name='the_same[]' value='different' /> <input name='the_same[]' value='different' /> <input name='the_same[]' value='different' /> <input name='the_same[]' value='different' /> When server side receive the post data, i use a foreach to accept ...

Can I use HTTP Post Requests for SOAP? - SOAP and Django

Hi folks, I am wondering if I could use simply use HTTP POST Requests in order to implement a SOAP API. If so how should I format and treat the requests? ...

POST REST-Web-Service Call for iPhone application

Hello Friends, Anyone have idea how to pass value from iPhone application to the REST-Webservice using POST method.? ex: http://mysite.com/services/updatescore/uid=1234&amp;score=12658 I want to send this information using POST request. - How can I do it.? Thanks. ...

how to write an artificial request.

how can i construct a artificial request to login to twitter or any site for that matter that accpets post forms. what i've been trying is to extract the headers and post request parameters from the origional request(directed at the action atribute of the form) and copy it to the outgoing url object that i am making.but it just won't wo...

PHP: simple form encoding/decoding

Hi guys, Probably, this question has been asked before, though, I'll ask it again. Currently, I'm facing a problem with form encoding. When posting my form, all spaces are replaced by the "+" character. I would like to replace this "+" character by a real space. Does someone has a PHP solution for this? Thanks in advance. Cheers, ...

What is the best way to debug when a jquery post is not firing off an asp.net mvc controller action

I put a breakpoint on the controller action but it never fires. Is there anyway to catch errors on a jquery post? here is my jquery javascript code: <script type="text/javascript"> $(document).ready(function() { $('#commitExerciseButton').live('click', function() { $.post($("#exerciseForm").attr('action'), ...

Post microphone input from Flash to server

We're trying to get microphone input in a Flash movie and the post it to the server so it can be saved in a file. Currently, we're using PHP in the server, but I guess the key thing here is: How to post the audio to the server? After a post is made, then I guess it'd be a matter of handling the encoding and saving to a file, which can ...

radio button value in php

I'm trying to make a simple survey in php I have a set of radio buttons on a page called sja.php that sends its to sjamail.php page the problem is that when I go to get $answer = $_POST['ans']; I can't seen to do anything like echo "$answer"; but if I were to throw some logic at it like if ($answer == "ans1") { ec...

What could trigger a change of http status to 500 on the client's end?

We have a PHP web application that posts data to itself, and either displays an updated page based on that data, or redirects to another page. An example of this is a script with a paged list on it, where clicking on the Next link causes a post to the same page, which then returns an updated version of the page showing the new set of lis...

Python Post Upload JPEG to Server?

It seems like this answer has been provided a bunch of times but in all of it, I'm still getting errors from the server and I'm sure it has to do with my code. I've tried HTTP, and HTTPConnection from httplib and both create quite different terminal outputs in terms of formatting/encoding so I'm not sure where the problem lies. Does an...

How to get the values from post method to the codehind file

I have created a Webpage which will post as "post" method..not as "get" method. <html> <head> </head> <body> <FORM action="RetrieveData_Post.asp" id=form1 method=post name=form1> First Name: <br> <INPUT id="txtFirstName" name="txtFirstName" > <br> Last Name: <br> <INPUT id="txtLastName" name="txtLastName" > <br> <INPUT typ...

Wordpress - Get Post Number in a Category

Is there a way for me to get a pseudo-ID of a post from the category it belongs to? Let's say I have these posts post_id | post_title | post_cat --------+------------+--------- 0 | a post | cat1 1 | a post1 | cat2 2 | a post2 | cat1 3 | a post3 | cat2 ... 57 | a post57 | cat2 I want the pos...

Getting content from PHP: Trouble with POST and query.

Apologies for my longest question on SO ever. I'm trying to interface with a php frontend for a mysql database in ROOT (a CERN framework in C++ for high energy physics analysis). To start off with, I tried to get this php interface to play nice with wget and curl first because I'm more familiar with them. The following command works: wg...