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
    New Coder
    Join Date
    Nov 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to create a dynamic self-updating pages

    I'm new to PHP and MYSQL i would like to ask the best way to make a page that prefills itself if a person is entering a customers name that is already in the database. In onter words I just want a script that checks if a certain customer exists in my system without submiting the form... Is there a way using PHP or can i embed another language in PHP that could do that and what could that language be

  • #2
    Regular Coder
    Join Date
    Sep 2006
    Location
    Vermont, USA
    Posts
    154
    Thanks
    0
    Thanked 6 Times in 6 Posts
    I think you might be looking for a dhtml (or ajax) solution. Pretty simple to pull off...
    throw an onkeydown event on the customers name field, something like...

    onkeydown="getCustData(this.value);"

    obviously that function exists in javascript and is setup to use an ajax style request to the server passing the customer name, and when it gets data back - populate the rest of the fields.

    This is more of a javascript question though, as the only thing you'd need php for was the querying of the database and the output of the array.
    Active PHP/MySQL application developer available for immediate work.
    syosoft.com mavieo.com - Remote Web Site Administration Suite - Reseller Ready


  •  

    Posting Permissions

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