i just got into html recently and i've been using a live editor to help me get better at it.... but now that i think i am, i want to be able to create a signup page that stores the users infos like username, password, email, sex and agreement to terms&conditions etc... please if you have any idea post on this forum or if you really want to communicate with me and share notes or help me get better, this is my fb site==folu.me/akay its a short url... please help

Dani AI

Generated

As and already suggested, HTML/CSS alone can't persist signup data — you need server-side code plus a place to store it. Below is a compact, practical path for a beginner: a simple HTML form, a PHP handler that validates input, hashes the password, and uses prepared statements to insert into a database. For form basics and how the browser sends name/value pairs to a server, see the MDN form guide. (developer.mozilla.org)

Start small and test locally. Build a form with clear name attributes, require the email/password fields, and include a checkbox for T&C (store acceptance as a timestamp/version if you need an audit trail). Example HTML (very small):

<form action="signup.php" method="post">
  <input name="username" required>
  <input type="email" name="email" required>
  <input type="password" name="password" required>
  <fieldset>
    <label><input type="radio" name="sex" value="M">M</label>
    <label><input type="radio" name="sex" value="F">F</label>
    <label><input type="radio" name="sex" value="O">Other</label>
  </fieldset>
  <label><input type="checkbox" name="accept_terms" required> Accept</label>
  <button type="submit">Sign up</button>
</form>

A minimal safe server workflow (PHP + PDO): validate and sanitize inputs, require a minimum password length, hash with password_hash(), and use prepared statements to avoid SQL injection. Store the hash in a VARCHAR(255) column and check uniqueness on username/email before insert. Example concepts shown below — password_hash() and PDO prepared statements are the right tools; see the PHP manual and OWASP storage guidance for details. (php.net)

Quick security and deployment tips: run the app over HTTPS, enforce server-side validation (client-side is UX only), use password_verify() at login, rate-limit login attempts, log errors (don’t show them to users), and record T&C acceptance with a timestamp/version if you need proof (see ICO guidance on recording consent). If something fails, check DB connection settings, PDO error mode (use exceptions), and column sizes. (ico.org.uk)

This builds on the practical points from , , , and : learn fundamentals, then apply a small, secure stack (local dev → PHP/PDO → MySQL/sqlite or hosted DB), iterate, and harden as you go.

Recommended Answers

All 8 Replies

This request involves processing form input and storing user information on your server. You cannot do this with basic HTML/CSS. You're looking for server-side scripting. You need to learn a language like PHP, JSP, or ASP. PHP is free and the only one of the 3 that I know, so I will be biased and suggest that. With a server-side language you can process the script, pulling the information out of it. Then you need to store the information somewhere, either in a file or in a database. Using a database management system (DBMS) such as MySQL is the preferred method.

On a side note, you usually shouldn't need to store that the user accepted an agreement to terms & conditions. On most systems this will be a requirement for registering, so if they did not accept the T&C, you simply don't register them.

I hope that helps somewhat.
- EF

Unfortunately, using 'live' editors is not learning html, to do that you need to start from very basics, don't try running before you can walk, google 'html beginner tutorials'
If you need a quick fix, try wix.com, you should be able to do all you need there with the minimum of knowledge, but sorry, you won't learn html that way.

If you want to store information, you can store them in a Database, save inputs on a csv, etc. there are plenty of resources on that: google it, youtube it, daniweb forum search it, bing it, etc.

PHP & MySQL solve your problem, buy for dummies book and start learning step by step :)

buy for dummies book and start learning step by step :)

They aren't the only ones... there is also Wrox and headfirst... etc.

They aren't the only ones... there is also Wrox and headfirst... etc.

And then there's a library, or is that too old-school these days? ;)

there are computer languages books in libraries??? o well i'm not sure they will even be in my country-Nigeria

regarding that matter, maybe you should practice first php and mysql.I assure it will work..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.