April 12, 201214 yr Hey, I'm making a site and I want it to have a feature that I believe isn't achievable with just HTML. I want to have a form where someone enters their name, email address and then chooses a "group" to join. Each group will have 15 spaces but I want each person to get a random number in the group (1 to 15) when they hit the join button to join that group. Then the next second after they hit "confirm" it adds their name into a random position (1-15) in the group they chose. So my question is this; What coding language do I use for this? What sort of feature in the language am I looking for? I need a language that takes the contents of a form and then adds them to a table/creates the content itself. Thanks a ton.
April 12, 201214 yr Hi LukeeeeBennett PHP & MYSQL could handle this. Maybe a bit of Javascript or JQUERY for validation too. You would need to have a look at database design (for how you are going to structure your tables/what type of content to store in the tables [eg numbers/a set number of characters per cell/unique/primary key etc]). You would need to look at connecting php to mysql (CRUD - create, read, update and delete). PHP random functions. Testing for values in the db to make sure you are not adding a number that is already assigned [selecting existing data as an array and then comparing]. Hope that helps, Paul Edited April 12, 201214 yr by paulb
April 13, 201214 yr Author Hi LukeeeeBennett PHP & MYSQL could handle this. Maybe a bit of Javascript or JQUERY for validation too. You would need to have a look at database design (for how you are going to structure your tables/what type of content to store in the tables [eg numbers/a set number of characters per cell/unique/primary key etc]). You would need to look at connecting php to mysql (CRUD - create, read, update and delete). PHP random functions. Testing for values in the db to make sure you are not adding a number that is already assigned [selecting existing data as an array and then comparing]. Hope that helps, Paul Thanks so much Paul. Would you say this is a hard ting to learn? I've dabbled in PHP but never full on "studied" it.
Create an account or sign in to comment