Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    20
    Thanks
    3
    Thanked 0 Times in 0 Posts

    i want to be the messege in same page

    hi guys i have a text box and below the text box i provide a link to add another text box.when i click that link it will dynamically add another text box.
    In that text box i will give some number, this number checked with database.After checking,if that number exists in database just it will display right side of that text box like " number exists in database".how can i do this.
    i done this by taking dummy page and in that i will display as like first page.but it is very coplex i think. is there any ideas how to display messege right side of text box in that same page only.

  • #2
    Regular Coder ghostz00's Avatar
    Join Date
    Aug 2006
    Posts
    128
    Thanks
    11
    Thanked 2 Times in 2 Posts
    Not sure if this is what you mean but.

    But hopefully this short dom example will help you.

    PHP Code:
    <html>
        <
    head><title>example</title>
        
        <
    script type="text/javascript">
            function 
    rightSide(){
                
    document.getElementById("result").innerHTML="Number Found in Database";
            }
        
    </script>
        
        </head>
        
        <body>
            <form method="post" action="yourscript.php">
                <input type="text" name="data" /><span id="result"></span><br>
                <input type="button" value="Click ME" onclick="rightSide()" />
            </form>
        </body>
    </html> 
    Greg


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •