Is there a way to turn off the PHP functionality for Submitting a multidimensional array via POST with php?
So that submission of <input type="text" name="variable[0][1]" value="..." /> produces a $_POST like so...
array (
["variable[0][1]"] => "...",
)
NOT like so:
array (
["variable"] => array(
[0...
I have problem i`m trying post data with php and cURL but that not working.
How should looks correctly code if form is secure by random session id in input value, and have pieces of posting (stage )
<form name='p' method='post' action='/pl/Register.php'>
<input type='hidden' name='sid' value='wa12891300kv1283056988...
I'm a Lift newbie and I can't digest it's HTTP request/response cycle yet. Handling REST is thoroughly explained in Lift docs but what I'm looking for is much simpler: how do I access HTTP request body/params in my web service (in Scala code of course) ?
...
Seems there have been some talk about this issue before, but i will post this anyway..
Public Function test(ByVal val As List(Of TestObj)) As ActionResult
For Each o In val
Next
End Function
Class TestObj
Property id As Integer
Property name As String
End Class
When trying to call this function trough jQuery's post m...
Hi all,
MyObject myobject= new MyObject();
myobject.name="Test";
myobject.address="test";
myobject.contactno=1234;
string url = "http://www.myurl.com/Key/1234?" + myobject;
WebRequest myRequest = WebRequest.Create(url);
WebResponse myResponse = myRequest.GetResponse();
myResponse.Close();
Now the above doesnt work but if I try to hit...
I have just implemented mysql_real_escape_string() and now my script won't write to the DB. Everything worked fine before adding mysql_real_escape_string():
Any ideas??
$name = mysql_real_escape_string($_POST['name']);
$description = mysql_real_escape_string($_POST['description']);
$custid = mysql_real_escape_string($_SESSION['custome...
I've tried so many combinations of php to get wordpress to output $post->post_content as formatted text (as opposed to the raw formatting that echo $post->post_content gives me. This combination seems to be the most promising, but it isn't outputting anything. Any ideas?
(it's this line: <?php $content = apply_filters('the_content', $s-...
I can't seem to post needed information to my database, here's what I've got:
<mx:HTTPService id="someService" url="http://name.domain/postPHP.php" method="POST">
<s:request xmlns="">
<name>{name.text}</name>
<score>{score.text}</score>
</s:request>
</mx:HTTPService>
And of course a button to send();
P...
If a user clicks a button that will make an ajax post call to a php file, then navigates away from the website or closes the window, will the php file run completely until it finishes?
i want the file to download stuff to my server and post a bunch of information into a mysql database. This could take a minute or two. But i want the tas...
Hey guys,
Just a quick question,
when I do
request = Net::HTTP::Post.new(path)
Can I do
path = '/api/v1/baskets?apiKey=' + api_key + '&sig=' + sig + '&time=' + time
Where api_key sig and time are some string
or do I need to do
path = '/api/v1/baskets'
request.set_form_data({'apiKey' => api_key, 'sig' => sig, 'time' => time})
...
I'm trying to patch RestSharp for it to be able to POST XMLs with non-ASCII characters as POST request body.
Here's how it gets written:
private void WriteRequestBody(HttpWebRequest webRequest) {
if (HasBody) {
webRequest.ContentLength = RequestBody.Length;
var requestStream = webRequest.GetRequestStream();
...
Hi!
I am supposed to post some data to a site, using C#. I could post by just using a formular and simple html code. But I do not want any user to be able to look at the source code.
My basic code is:
WebRequest request = WebRequest.Create("https://blabla.bla");
request.ContentType = "application/x-www-form-urlencoded...
I have a set of simple HTML pages that I'm using for a Facebook application, hosted on IIS (6, most likely, but possibly 7. My client is irritatingly withholding on details).
For reasons passing understanding, Facebook must make POST requests when it tries to load a Pages tab. The POST request goes to a static .htm file on the site whic...
I need to POST a request. The request has 3 parameters, 'email_id' , 'location' and 'image_data'. The value for 'image_data' contains NSData jpeg representation of a UIImage. The request must be submitted using a content type of multipart/form-data. How can I create the NSMutableRequest for posting this request? How should I set the boun...
hello there.
trying to post some xml with curl but it keeps adding slashes to "s.
I'm sending it to a server i don't hav access so cant encode/decode...
$xmlToPost = '<PurchaseItems DISCOUNT="0" NETLINEVAL="0" PACK_CODE="0" VAT="0" PurchaseOrderNumber="'.$_POST['txn_id'].'">'; // just a snippet!
$ch = curl_init();
curl_setopt($ch, CU...
I have a <textfield> ($_POST['list']).
How can I get value of each line to an array key?
Example:
<textfield name="list">Burnett River: named by James Burnett, explorer
Campaspe River: named for Campaspe, a mistress of Alexander the Great
Cooper Creek: named for Charles Cooper, Chief Justice of South Australia 1856-1861
Daintree River...
I am creating a site that utilizes the jQuery UI tabs. Whenever the user flips between the tabs, the tab they just left is posted back to the server in order to save the state.
One of the tabs in particular is a bit complicated in that, if I select a particular data option, other options need to be disabled. However, because of the POST...
Dear all:
When we update status in facebook, we can tag a friend in it by issuing a @ symbol and typing the friends name.
Similar to this, I want to tag some friend in a post generated by my facebook application. I have searched in the facebook GRAPH API for the solution but couldn't find it. I have seen some application doing this. Ca...
I'm trying to post via curl, I've been using the same code over and over again with no problem but now I need to be able to use an array for posts (i'm not sure if there's a proper term for that?).
I should clarify that it's specifically a file i'm trying to post, but I can't get it working with a string either so I don't think it's too...
I have this code setup in a web page.
<div id="gridResults">
</div>
<script type="text/ecmascript">
jQuery.ajax({
url: "http://localhost:6002/AggregateServices.svc/incident/10",
type: "POST",
async: true,
success:
function(json) {
var table = jQuery('<table />'...