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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:39:48+00:00 2026-05-25T23:39:48+00:00

I have quite some experience with php, but I am very new to using

  • 0

I have quite some experience with php, but I am very new to using jQuery.

I am hoping someone can give me some example code (preferably) or point me in the right direction for which jQuery functions I need to use, essentially, what I want to do is for a user to submit a form in php and then for the results of that form submit to be displayed on the same page using jQuery (I assume).

Like I said I have very little experience with jQuery, and none doing something like this. So any help is appreciated.

  • 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-25T23:39:48+00:00Added an answer on May 25, 2026 at 11:39 pm

    Well, this answer is not really targeted at the newbie, but if you really want to dig into writing your own custom a PHP/JQuery interface you might want to try something like this:

    • use ajax function name as a php pseudo function name
    • implement jquery and let php echo the output.
    • this can be useful if you want to only write your code in php only
    • not really practical but it works some 90% of the time.

    Note sure if there’s any library out there that does this implementation but I do have some
    sample implementation which I use on some custom development projects, maybe you might find
    some of the insights useful if you are really into writing your own code.

    See the following code snippet

    <?php
    function js_start(){
      return '<script type="text/javascript">';
    }
    
    function js_add_jquery($version='1.4.2'){
      return '<script src="https://ajax.googleapis.com/ajax/libs/jquery/'.$version.'/jquery.min.js"></script>';
    }
    
    function js_ajax($url, $data, $success){
     return "
     $.ajax({
        url: '$url',
        data: '$data',
        success: $success
      });";
    }
    
    
    function js_end(){
      return '</script>';
    }
    
    
    //Example usage:
    // where success is behaviour you want executed on success
    $success =
    "function(data) {
      $('#page').html(data);
    }";
    
    echo js_add_jquery(); // default version 1.4.2 is used here
    echo js_start();
    echo js_ajax('test.php', 'name=John&surname=Doe', $success);
    echo js_end();
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am quite new to programming in Java, but I have some experience in
I'm very new to WordPress and have no PHP or CSS experience... I'm want
I'm new to programming androids but I have quite a bit of experience programming
I'm new to the C++ world, but I have some experience with C and
I have a flash page which takes quite some time to load, but I
I have quite a few years experience of developing PHP web applications, and have
I have some experience with JavaScript - but mainly with some small stuff, I
Scenario: I have been using Java SE for quite some time, working with threads
I am new to computer programming and have some experience programming with python. I
while I have quite some python experience, I've never used it for web and

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.