JoshuaKris Posted November 5, 2014 Share Posted November 5, 2014 Hi Team. Please help me out to create a small script. i have made a jpeg image(See Below), how i want the script and what the script have to do... Basically i wanted two php script. but currently will tell you the First one. 1.- I would like to create a list of players eg. name1, name 2, name 3, and wanted a drop down list for the Names. and same for the teams, List of teams eg team1,team2,team3 and so on... once the user / admin choose the player (for eg name2) and the team as team1 and click the button (ADD PLAYER), the Player Name should to the choosen Team column in the same page or even in the next page ( By refresh its should not get clear) and also required a remove button Next to the Players incase if we wish to remove.. can any one create a Php script for the same.. please help Quote Link to comment https://forums.phpfreaks.com/topic/292282-php-help/ Share on other sites More sharing options...
mac_gyver Posted November 5, 2014 Share Posted November 5, 2014 where are you stuck at when you attempted to do any part of this? programming help forums can only help with specific questions or specific errors with code you have written. all you have posted is what you want. Quote Link to comment https://forums.phpfreaks.com/topic/292282-php-help/#findComment-1495789 Share on other sites More sharing options...
Barand Posted November 7, 2014 Share Posted November 7, 2014 You are making life difficult for yourself. Instead of building lists from the selections and then deleting and reallocating from and to those lists, can I suggest an easier interface to make it easier to change the allocations until you are satisfied? Each radio button would be of the form <input type='radio' name='member[$playerid]' value='$teamtid'> then the processing of the form submission would simply be foreach ($_POST['member'] as $playerID => $teamID) { // save player and team allocation } Suggested form Quote Link to comment https://forums.phpfreaks.com/topic/292282-php-help/#findComment-1496002 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.