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 8093325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:28:51+00:00 2026-06-05T20:28:51+00:00

I am using ajax jquery to send data to php, as data I am

  • 0

I am using ajax jquery to send data to php,
as data I am sending one url as string from ajax that contains special character i.e “&”
So I’m not getting full url i.e. my data it retrieved until ‘&’ only rest id ignored and not displayed.

Below is my code for ajax and php:

dummytest.php

$temp=$_POST['address'];
echo $temp;

test.html
(ajax to send data )

    var send="http//192..../oracle/master.php?result=2&table=1"
    $.ajax({
        type: "POST",
        url: "dummytest.php",
        dataType: "text",
        data: send,
        success: onSuccess,
        error: onError
         }); 

I’m sending data “send” i.e one url as string data
but I’m receiving it until “&” only in my php i.e.

http//192..../oracle/master.php?result=2

Can any one tell me how can I get my full data/url ?

  • 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-06-05T20:28:52+00:00Added an answer on June 5, 2026 at 8:28 pm

    You are sending the URL as the whole body of the POST request, while on the PHP side you are expecting to find it in the address parameter. You should change send on the Javascript side to

    var send = { address: 'http://...' }
    

    and jQuery will take care of encoding it in the body of the request.

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

Sidebar

Related Questions

I am sending a json string using JQuery.ajax to a php page where I
I'm using jQuery.ajax to extract form data from a page, and send it to
I am using JQUERY .ajax() to send serialized form data to MySQL using PHP.
I'm using jQuery's AJAX function to send a message from a contact form -
I tried to just send some information to a php file using Jquery Ajax.
I would like to send data using the jQuery Ajax API: var myData =
How to send a javascript array to PHP using Jquery Ajax.(Note: i will get
I am send request to PHP page by using jquery ajax concept, I have
I’m using jquery to send text back to my ajax.php controller like this: var
i'm trying to send an js object to a php function using jquery.ajax .

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.