Im learning to design a web site. I would like some one teach me how to design a form to obtain information from visitors to the site. I know how to create the form but I dont know how to make it retrieve the information or where the information should be.

Dani AI

Generated

A few practical steps that bridge what asked and the early replies from , and .

HTML builds the form UI but the browser must POST that data to a server-side receiver (the URL in the form's action). That receiver is where you decide what happens next: email the submission, insert it into a database, forward it to a CRM, or call a third‑party form API. Design the server endpoint so each input’s name maps to a stored field; keep field names stable so server code and storage stay simple.

A minimal workflow to implement reliably:

  1. Define the exact fields and validation rules up front (what is required, max lengths, allowed characters).
  2. Build accessible markup (labels tied to inputs, sensible type values).
  3. Create a server endpoint to accept the submission, perform server‑side validation, and then persist or forward the data. For structured storage a simple contacts table is common; for example:
CREATE TABLE contacts (
  id INT PRIMARY KEY AUTO_INCREMENT,
  name VARCHAR(100) NOT NULL,
  email VARCHAR(255) NOT NULL,
  message TEXT NOT NULL,
  ip VARCHAR(45),
  created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);

Security and reliability notes (these are easy to miss): always validate and sanitize on the server, use prepared statements to avoid SQL injection, serve forms over HTTPS, implement CSRF protection and spam controls (honeypot or CAPTCHA), and log failed submissions for debugging. If you plan to email submissions, use a proper SMTP relay and check deliverability (SPF/DKIM). For long forms consider draft autosave and clear success/error messages so users know the outcome.

To debug: watch the browser Network tab, log incoming payloads on the server, test with curl/Postman, and examine webserver/mail/database logs. For reference reading on form handling, accessibility and security see MDN, W3C accessibility tips, and the OWASP cheat sheets.

Recommended Answers

All 6 Replies

"I know how to create the form but I dont know how to make it retrieve the information or where the information should be. "

The reason is that HTML doesn't allow you to do this. Coffee Cup has some inexpensive software to create forms and handle responses. Or, if you think you can handle some basic CGI, there are programs that will process your input for you.

The content is the main source for the website.Their full ability may given in the content.The content updation must be kept in the regular work for the designer.The simple and understandable text also is an advantage for the content.

try to search about > make form to mail php < on google if you want the data send to your inbox

Im learning to design a web site. I would like some one teach me how to design a form to obtain information from visitors to the site. I know how to create the form but I dont know how to make it retrieve the information or where the information should be.

Hi,

You must use either asp or php codes for saving the the information from the visitors. You can also use Content Management System Platform, to easily create a form for adding visitor information. Try checking on, square space and wordpress. You can also check Joomla!

Ivan Shieldon LLesol

Cool..
Form is basically used to get user information, there are two two ways to do it. GET and POST method. To collect user information in server side, you have to use some server side language like PHP, ASP or JSP.
Check out this link for PHP Example.
http://www.tizag.com/phpT/postget.php

Im learning to design a web site. I would like some one teach me how to design a form to obtain information from visitors to the site. I know how to create the form but I dont know how to make it retrieve the information or where the information should be.

Hi,

You can use Web Content Management Tools for developing website. Creating a form is just easy there. For more information visit the following websites:

http://joomla.org

http://magentotechnologies.com

Ivan

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.