tshing70 Posted July 11, 2012 Share Posted July 11, 2012 I have a member.php that for user input data, such as name, gender,dob etc...When i click save button, it will save to listing.php, inside listing.php store the information that user input, also a EDIT and DELETE button.Here is the point,When i click edit button, it goes to edit.php, inside edit.php, it have two table which is newmember and collection, inside newmember table, it use to edit the info that user insert,inside collection table, it able to add,delete,and edit...it contain date, referenceno and amount.... I wish when i click the edit button in edit.php, the collection table will focus on the member that i click...For example,when i click the edit.php member name is Andy, then the collection table only show Andy collection table,If other member name is Emandy, it will show only for Emandy collection table.Hope anyone can help me, many thank Link to comment Share on other sites More sharing options...
birbal Posted July 11, 2012 Share Posted July 11, 2012 You need to do it with AJAX. when you select a member you have to pass a reference of that member as id or name to a page where you will pull down data from collection table depending upon the member id/name. the returned data will be passed to edit.php as response. you can then use reponse to manupulate part of the page to show the data. http://w3schools.com/ajax <= you can start ajax here Link to comment Share on other sites More sharing options...
tshing70 Posted July 11, 2012 Author Share Posted July 11, 2012 You need to do it with AJAX. when you select a member you have to pass a reference of that member as id or name to a page where you will pull down data from collection table depending upon the member id/name. the returned data will be passed to edit.php as response. you can then use reponse to manupulate part of the page to show the data. http://w3schools.com/ajax <= you can start ajax here You need to do it with AJAX. when you select a member you have to pass a reference of that member as id or name to a page where you will pull down data from collection table depending upon the member id/name. the returned data will be passed to edit.php as response. you can then use reponse to manupulate part of the page to show the data. http://w3schools.com/ajax <= you can start ajax here thank for the reply, i will have a look later, again, thank~~ Link to comment Share on other sites More sharing options...
justsomeguy Posted July 11, 2012 Share Posted July 11, 2012 If the edit page already has the ID of the member to display, then you can use that ID to look up the member's records in the collection table. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now