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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:58:59+00:00 2026-05-26T02:58:59+00:00

Hello I have the next code into my website: <input type=text id=name name=name width=25px/>

  • 0

Hello I have the next code into my website:

<input type="text" id="name" name="name" width="25px"/>
<a href="#" id="newUser">Add User</a>

I need that when I click “newUser” the value of the name is saved into my mysql database without refreshing the page.
Any exemple of how to do this?

  • 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-26T02:59:00+00:00Added an answer on May 26, 2026 at 2:59 am

    This can be done on the client side with jquery’s ajax libraries to create the refreshless submit.
    Here’s an example of some html and javascript

    <html>
        <head>
            <script type="text/javascript" src="jq/js/jquery-1.4.4.min.js"></script>
            <script type="text/javascript">
                function adduser()
                {
                    var data=$("#adduserform").serialize();
                    $.ajax({
                        type: "POST",
                        url: "adduser.php",
                        data: data,
                        dataType: "html",
                    });
                }
            </script>
        </head>
        <body>
            <form id="adduserform" name="adduserform">
                <fieldset>
                    <input type="text" id="name" name="name" width="25px"/>
                </fieldset>
            </form>
            <a href="javascript:adduser();" id="newUser">Add User</a>
        </body>
    </html>​
    

    On the php side just code like you would if you were submitting a form via post.
    I haven’t had time to try it, but I hope it works 🙂
    Like the others have suggested, look on the jquery site for more info.

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

Sidebar

Related Questions

I have the following html code: <div class=Radios> <span class=radio> <input type=radio value=1> yes
Hello I have the following code namespace ConsoleApplication2 { class Program { static void
Hello i have this form filling javascript: function onLine(code,nn) { document.writeform.bericht.value+=code; document.writeform.bericht.focus(); document.writeform.nickname.value+=nn; write1();
i have the next code written in C#....it create a tex file using utf-8.....the
Can someone explain me the difference between Class.forName() and Thread.currentThread().getContextClassLoader().loadClass(). I have next code
Hello I have this in my code File file = new File(words.txt); Scanner scanFile
CODE HERE: http://jsfiddle.net/B7Y43/ Hello fello programmers, I have the following situation: My PHP-script generates
I have the following code for converting the elements of an XML file into
Hello and excuse me again I have the next problem: I am using fbgraph
I have the next code: mov ax,@data mov ds,ax Why I can not write

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.