I need to create a user registration page for my web app that connects to my existing user database. The form should be pretty basic with just a few text fields and dropdown menus where people can enter their info.
I’m totally new to web development so I’m looking for the easiest approach possible. If there’s a way to do most of the backend work in C++ that would be great since that’s what I know best. Java would work too if needed.
Also wondering if it’s realistic for a beginner like me to make one of the dropdown lists populate automatically from a database query. Like if I want to show a list of departments or locations that gets pulled from a SELECT statement. Is that too complicated for someone just starting out with web programming?
what db are u using? dat info will help figure out the best way. when u say “existing user database” - do u have tables set up or still planning? if ur new, express.js could be the easiest option even if u don’t know much js.
Don’t use C++ for web development as a beginner - you’re just making things harder for yourself. Go with Django (Python) or Spring Boot (Java) instead. Both handle forms and database connections out of the box. For your registration form, build in server-side validation and password hashing from day one. Don’t bolt security on later. The dynamic dropdown isn’t hard once you’ve got your backend set up. Most frameworks can pull from the database and populate dropdowns when the page loads. I’d start with a basic form using static dropdown options, then add the database-driven dropdown in version two.
c++ for web? yikes, might be tough! try node.js or php, much simpler for starters. as 4 the dropdown, yeah, it can work but maybe stick to hardcoding options at first. save db queries for later, focus on 1 thing at a time!