PHP_Idiot Posted April 7, 2009 Share Posted April 7, 2009 Confusing title I know, but wasn't sure how else to describe it! I have an html table with 5 columns: Position, Points, MembershipNo, FirstName, LastName Position and Points are populated using a php $counter loop. MembershipNo will be user inputted FirstName & LastName - I want these to look up the membership number that has been inputted and display the associated First & Last names of the players. However, I want it to do this on the fly, so as soon as each membership number is entered the names appear. What I do not want to do is to have to click a button either at the end of each row or at the end of the form to fill these values. I can't work out how to do this, but I suspect it may involve Java (although I desperately hope it doesn't as I have never used it!). Can anyone offer any advice at all please? Link to comment https://forums.phpfreaks.com/topic/153010-display-cell-content-based-on-user-input-without-buttons/ Share on other sites More sharing options...
Fruct0se Posted April 7, 2009 Share Posted April 7, 2009 You will want to look into ajax to disply results as users type, and it involves java Link to comment https://forums.phpfreaks.com/topic/153010-display-cell-content-based-on-user-input-without-buttons/#findComment-803647 Share on other sites More sharing options...
PHP_Idiot Posted April 7, 2009 Author Share Posted April 7, 2009 So I'll need to use Java AND Ajax!! Hmm, better get learning I know nothing about either! Link to comment https://forums.phpfreaks.com/topic/153010-display-cell-content-based-on-user-input-without-buttons/#findComment-803668 Share on other sites More sharing options...
Axeia Posted April 7, 2009 Share Posted April 7, 2009 Before you lock yourself in and start hitting the books you might want to know it's javaSCRIPT and not java. There is a massive difference between the two. Ajax is just a term to describe doing fancy things with javascript requesting/posting urls without changing the page. W3Schools has a rather limited tutorial on it, but it's a good start. If you have no experience with javascript, their javascript tutorial is quite extensive http://w3schools.com Link to comment https://forums.phpfreaks.com/topic/153010-display-cell-content-based-on-user-input-without-buttons/#findComment-803681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.