How do I use PHP with a from?

  • Thread starter Thread starter real_computer_mac
  • Start date Start date
R

real_computer_mac

Guest
How would I use PHP and a HTML form to call a function or php page that searches a database and displays the results on the same page as the form?
 
you dont need AJAX. You can use just the simple SELECT command like so:

SELECT * FROM `tablename`
 
You'll want to do that with AJAX, which uses javascript. PHP can only display new data by reloading the page.

http://aa.wrs.yahoo.com/_ylt=A0oG75pWU2lJFYoAFMfjPwx.;_ylu=X3oDMTBybnZlZnRlBHNlYwNzcgRwb3MDMQRjb2xvA2FjMgR2dGlkAw--/SIG=11tm69eeg/EXP=1231725782/**http%3a//www.w3schools.com/ajax/default.asp
 
Back
Top