SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Building a Form

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Building a Form

    Hello all.

    I'm just about to create a popup email form for a site i'm building as the client would like a popup type form opposed to opening default email like Outlook etc. Can anyone point me to a source of information on the development of this process please?

    Thank you

  2. #2
    SitePoint Zealot Mattinblack's Avatar
    Join Date
    May 2009
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not a single one no, though I have thought of writing a guide myself...lol

    What you need is a combination of four things:

    Javascript to show/hide the form as a positioned div rather like how this popup script works but using a button rather than a timer to open it.

    A Javascript Captcha (to stop non-humans using it)

    Javascript (AJAX) to send the information to a server based program for sending and then close the form.

    PHP or whatever tech you are using to vet the information, filter it, and send it.

    You will find all these techniques on the web but not all in one place/script (until I write mine of course :-)

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Matt. I start my research and let me know when yours is up and running!

    Cheers

  4. #4
    SitePoint Zealot Mattinblack's Avatar
    Join Date
    May 2009
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just thought you dont really need the captcha so long as in your PHP script you use the server variables to police which page a sucessful request is coming from and stop hackas from using the php direct. this is because if you load the thing in javascript then bots wont be able to run it and attack it anyway.

  5. #5
    SitePoint Enthusiast hartofalyon's Avatar
    Join Date
    Aug 2008
    Location
    NYC
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.webgurusdesignblog.com/20...sign-projects/

    a nice resource listing various modal boxes. is something like this what you're looking for?

  6. #6
    SitePoint Zealot Mattinblack's Avatar
    Join Date
    May 2009
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you are- the full code and instructions for an AJAX/PHP pop-up mailer... its even quite secure!

  7. #7
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you guys. Much appreciated


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •