baseballgraphs Posted September 9, 2010 Share Posted September 9, 2010 Hello, I am currently working on a project that allows people to search a table in my database, select a name from the database, and then get passed to another page where the name's id from the table in my database is used. Here is the current code that I am dealing with: http://pastie.org/1147187 What I am doing is getting my two columns from my table, PLAYER_NAMES and PLAYER_ID. Then, using javascript, I am creating an autocomplete field where users can begin typing a PLAYER_NAME and select the player they want. However, I do not want to pass the PLAYER_NAME to the URL -- instead, I would like to pass the PLAYER_ID to the URL. How can I improve my code so that when a user selects a player value the player's ID is passed through to the URL using javascript? I would seriously appreciate any help. Thanks! Link to comment https://forums.phpfreaks.com/topic/212922-how-to-show-values-and-pass-other-values-associated-with-those-values-to-url/ Share on other sites More sharing options...
Adam Posted September 10, 2010 Share Posted September 10, 2010 Can't really help you based on just that. Are you using a plug-in, and if so which? It doesn't look like 'jQuery Autocomplete' as the properties are different. Link to comment https://forums.phpfreaks.com/topic/212922-how-to-show-values-and-pass-other-values-associated-with-those-values-to-url/#findComment-1109671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.