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

The Archive Base Latest Questions

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

I have a screen from which a user can click on a button that

  • 0

I have a screen from which a user can click on a button that brings up a popup
window. When the user clicks on save from the pop up window, the data is to be
save. It doesn’t save anything, it is as if it does not see the database. This cannot be because I’m able to call data from it and display it.

jQuery on user page:

$(".up").click(function(){
    var code = '1234';
    var id = '24';
    var who = 'someone';
    $("#ui").html('loading...').show();
var url = "box.php";
    $.post(url, {code: str, g:id, u:who} ,function(data) {
        $("#ui").html(data).show();
    });
});

php on popup bx:

//link db  {...........}
// grab post
$click = $_POST[code];
$id = $_POST['g'];
$u = $_POST['u'];

// query php {........}

jQuery on popup box:

$("#process").click(function(){
    var ID = '24';
    var who = "someone";
    var pla = "place";
    $.ajax({
        type: "POST",
        url: "member.php", //contains function 
        data: 'user='+ who+ '&dept='+ pla+ '&sure='+ ID, 
        cache: false,
        success: function(html) {   
            //do something
        }
    });
});

When I hit submit it doesn’t post to the database. Maybe it’s not passing the data to the member.php page.

  • 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-09T14:17:02+00:00Added an answer on June 9, 2026 at 2:17 pm

    Try to change:

    $('#process').click(function()
    {
        ...
    });
    

    to:

    $(document).on('click','#process',function()
    {
        ...
    });
    

    Edit:

    BTW, you also need to change:

    $click = $_POST[code];
    

    to:

    $click = $_POST['code'];
    

    Maybe you should also take a look at jQuery’s serialize() function, which will make it easier for you to get all your form values passed to your Ajax request.

    For more information: http://api.jquery.com/serialize/

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

Sidebar

Related Questions

i have this GUI screen shots from the design team which i needs to
i have a screen contains just two components 1-textView 2-button the textView starts from
I have a 3rd party web page screen capture DLL from http://websitesscreenshot.com/ that lets
I have an activity that I'd like to load from a preference screen. I'm
I have a screen with a button on a bottom toolbar which when the
I have 9 screen coordinates, each representing one of 9 positions. From the top
I have selected two components in the Customize Layout screen using a hint from
I'm trying to have a UIPickerView slide from the bottom of the screen (over
I have common functionality that I need to access from all screens of my
I have search screen which has 10 fields and involves around 5 to 6

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.