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

  • Home
  • SEARCH
  • 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 8394149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:58:58+00:00 2026-06-09T19:58:58+00:00

I am using $.post to post some data into the server and if that

  • 0

I am using $.post to post some data into the server and if that php file works then I am returned with some html snippet. Now the problem lies within the $.post code. I can’t insert the returned data from the php file onto the original file that contains the $.post code. Firebug shows that the html snippet does return back but I’m seeing it on my screen. What’s the problem?

Here is the code below for the file containing the .post()

<script type="text/javascript" >

$.post('ajax_send_band_request.php', {

user_id : user_id,
band_request: band_request,
where_to_go: where_to_go,
when_start: when_start,
when_end: when_end,
time: time  

}, function(data){

$(data).find('#message_return').appendTo("#response_from_request_verification")

})  

});

</script>           

<div id="response_from_request_verification"></div>

Here is the summarized php file version.

if(this_function_sends the data to the server($register_data) === true);

{

?>

<div id="message_return">Request sent!!</div>

<?php

} else

{

?>  

<div id="message_return">Request was not sent!</div>    

<?php   

}

?>
  • 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-09T19:58:59+00:00Added an answer on June 9, 2026 at 7:58 pm

    Remove the .find() part, you already have the div#message_return with $(data). .find() doesn’t check the root element for a match, just descendants.

    $(data).appendTo("#response_from_request_verification")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery's $.post function to retrieve some data from a php file,
I am using $.post() to input some data into a server. Within the ajax
I am using this code to post some data $('.update_btn').live(click,function() { var ID =
I am using a Richtext box control to post some data in one page.
I am using the WebClient class to post some data to a web form.
I am loading an iframe with some post data, by using a form post
I have grabbed some XML data using this piece of jQuery: $.ajax({ type: POST,
I am trying to rewrite some server php code which logs into a website,
I'm pulling in data from a flat file into a SQL Server 2008 table.
I create a simple MVC Controller action, that takes some json data - then

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.