The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other contact us

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #41523

    i want when any user came in my website and fill the contact form and after that message should be show in my contact form such as

    **your message successfully sent**

    Thanks advance


    @jurotek I’d actually recommend against that example – it has bad security ideas in it (e.g., printing user output without validating or sanitizing it first).

    it appears that [github is down while they investigate unicorns](, but here’s a link to my standard-response [example PHP contact form](

    **EDIT**: github is back up; [here’s the gist](


    Thanks @Eric. It’s a common enough question, so I figured I’d make an example.

    I’m rewriting it as a class (object-oriented code), which will make it much more flexible and easier to use – but functional code is less intimidating for a lot of people, so I started that way. I’m also working on the docs (but I’m in the middle of another tutorial right now).

    BTW github is back up; [here’s the gist](


    Yeah, I’ll post back here. Maybe I can find some time for it over the holiday.


    Is there something missing from your `formmail.php`? It seems incomplete (some vars are unused; others seem to be used but never defined…?). Or were you focusing more on the AJAX parts?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.