is it possible to create a form that actually works with html and css?
thanks in advance
is it possible to create a form that actually works with html and css?
thanks in advance
Short answer: yes — HTML/CSS build the UI, but to "actually work" (collect or store form data) the browser must send the form to code that runs on a server (or a server-like endpoint). was right to separate styling from data retrieval; your frustration is normal — most real sites combine HTML for markup, optional JS for UX, and a server language to handle submitted data.
A minimal HTML form (client side):
<form action="/submit.php" method="post">
<label>Name: <input type="text" name="name"></label>
<label>Email: <input type="email" name="email"></label>
<button type="submit">Send</button>
</form> A minimal server-side receiver (very basic PHP example — not production-ready):
<?php
// submit.php
$name = trim($_POST['name'] ?? '');
$email = trim($_POST['email'] ?? '');
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
http_response_code(400);
exit('Invalid email');
}
$name_safe = htmlspecialchars($name, ENT_QUOTES, 'UTF-8');
// store in DB, send email, etc.
?> Practical tips and troubleshooting
name attribute; without it nothing is sent. method="post" for most submissions; use enctype="multipart/form-data" when uploading files. If you want to avoid server setup while learning, run a simple local stack (e.g., PHP, Node/Express, or a lightweight Python framework) and practice a full round-trip. Pick one language and build one working example end-to-end — that will make web development feel a lot less fragmented.
Jump to Post— DanceInstructor 19Your question is very vague. Are you talking about styling or about data retrieval?
If styling then yes. For data retrieval you will need some kind of scripting language involved.
Your question is very vague. Are you talking about styling or about data retrieval?
If styling then yes. For data retrieval you will need some kind of scripting language involved.
i was talking about data retrieval. i'm very frustrated with web design because you can't just learn one language that does everything.
There is a very basic html only one at
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail
However AOL users won't be able to use it. - it opens the default mail client, which AOL users don't have.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.