DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: ajax in php question, form field population

  1. #1
    Join Date
    Nov 2007

    ajax in php question, form field population

    This is a simple (or so I thought) use of AJAX, but i can't seem to figure it out...

    I want to add a button to my page that when clicked, it runs a query in MySQL, then returns the value (a random value) to the form field.

    This seems like an easy application of AJAX, but I can't find anything that discusses it, and I am not a highly skilled developer... Any thoughts or suggestions or places I can look?


  2. #2
    Join Date
    Mar 2007
    Bangalore, India
    Please go through some AJAX tutorial. There is good one a w3schools. Goto and search for AJAX. You need to use PHP to communicate to the database and return the result to the AJAX client as XML data.

Similar Threads

  1. AJAX, cURL, and PHP
    By chivkea in forum AJAX
    Replies: 0
    Last Post: 03-22-2007, 09:15 PM
  2. php echoing an html form
    By Algorien in forum Web
    Replies: 5
    Last Post: 03-16-2007, 12:11 PM
  3. Form input and Ajax
    By cesarcesar in forum AJAX
    Replies: 1
    Last Post: 02-28-2007, 01:50 AM
  4. Replies: 0
    Last Post: 02-17-2007, 04:36 PM
  5. Text to html form field
    By kepler in forum VB Classic
    Replies: 0
    Last Post: 03-19-2006, 03:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center