hello all,

I'm going to be making a big forum website.... and i want suggestions for when it's running...

i want to add in a suggestion box... that someone can put their suggestion in and then, it e-mails it to me or.... something....

Something that is HTML..... and that is easy to add to my main home page. So could someone give me a site that has one that i can add in or give me a way of doing it....

I hope you get what i mean.

Thanks,

Cohen

Dani AI

Generated

As described, the usual pattern is an HTML form that POSTs to a server handler. As noted, the handler can either e-mail the suggestion or insert it into a database for later review. A minimal form should collect subject + message (name/email optional), then validate length and format server-side, log IP/timestamp, and apply spam controls (rate limits, CAPTCHA).

Example form (HTML):

<form method="post" action="/suggest.php">
<input type="text" name="subject" placeholder="Subject" required>
<textarea name="message" placeholder="Suggestion" required></textarea>
<input type="text" name="name" placeholder="Name (optional)">
<input type="email" name="email" placeholder="Email (optional)">
<input type="submit" value="Submit">
</form>

Minimal PHP notes: prefer a library like PHPMailer for sending (avoid raw header construction) and use PDO with prepared statements to store suggestions safely. For sending, validate inputs and never inject user text into headers. For storage, truncate/limit message length and use parameterized queries.

Security and ops tips: sanitize and validate all inputs, prevent SQL injection with PDO, protect against mail header injection by using PHPMailer (PHPMailer), and use server-side rate limits or CAPTCHA to reduce spam. For database guidance, see PHP PDO docs (PDO manual). Log submissions and provide an admin review UI so suggestions can be triaged rather than handled only by e-mail. Mention of 's community-feedback idea can be useful as a higher-level alternative (forum-style discussion) if public discussion is desired.

Recommended Answers

All 4 Replies

No,

Something like....

If you have a suggestion *enter it here* and hit submit and it will be sent to admin.

Something like that.....

Thanks,

Cohen

Use an HTML form which POSTs the data to some PHP handler code which mails it to you or stores it in the database

Use an HTML form which POSTs the data to some PHP handler code which mails it to you or stores it in the database

Yes, that is what i want, what do i have to do to either create one or add one to my website...

Cohen

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.