Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6900815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:35:41+00:00 2026-05-27T07:35:41+00:00

In an Objective-C method I use this NSURL *url = [NSURL URLWithString:@http://xxxxxx.com/test/test.php?id=3333&vote=1]; ASIHTTPRequest *request

  • 0

In an Objective-C method I use this

NSURL *url = [NSURL URLWithString:@"http://xxxxxx.com/test/test.php?id=3333&vote=1"];    
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setDelegate:self];
[request startAsynchronous];

How do I write a PHP script to receive those two arguments and pass them into local variables? In the end I would imagine something like $id and $vote which would equal 3333 and 1 respectively.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:35:41+00:00Added an answer on May 27, 2026 at 7:35 am

    Here’s how it’s done :

    <?php
    
        $id = $_GET['id'];
        $vote = $_GET['vote'];
    
        //do processing here
    

    but make sure you do some SQL injection proofing before inserting those values into a database

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to use the __unused attribute macro on Objective-C object method parameters?
You can use a standard dot notation or a method call in Objective-C to
Does a method like eval exist in Objective-C as in Javascript, Ruby, PHP, or
I've found this: function: http://github.com/timburks/NuMongoDB/blob/master/src/bson.c#L128 bytes: http://github.com/timburks/NuMongoDB/blob/master/src/platform_hacks.h#L55 struct: http://github.com/timburks/NuMongoDB/blob/master/src/bson.h#L70 But how exactly would I
I'm trying to use a C++ member in an Objective-C++ class. Something like this:
Possible Duplicate: “Invalid use of 'this' in non-member function” in objective-c context? If I
How would I expose an Objective-C method within JavaScript when using the iPhone SDK
I need to create an Objective-C method that converts an int into a byte
How do you declare an Objective-C static method that can be called without a
Objective-C uses a sophisticated message-passing system when one object calls a method on another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.