Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What language to use?

Featured Replies

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. :D

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 by paulb

  • 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. :D 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.