www.webdeveloper.com
Results 1 to 3 of 3

Thread: HTML/Javascript to collect and send email?

  1. #1
    Join Date
    Mar 2014
    Posts
    2

    HTML/Javascript to collect and send email?

    I have a simple html page with some javascript that will allow a user to type in the name of 4 Monopoly players. The script currently just randomizes the seating order of the players.

    I would like to put a separate text box beside each player's name for their email, when the randomize button is clicked I would also like to send the order to each player's email.

    Is this possible with any client side code? or do I have to recreate this page as PHP?
    Thanks

  2. #2
    Join Date
    Mar 2011
    Posts
    1,138
    You can't do this client-side. You'll need some kind of software on the server, be it a script written in PHP or some other language. The basics of such a script are pretty trivial. You could revise just about any formmail script you find to get it done. But it strikes me that this sort of script could easily be an open portal for SPAMmers, so you'll want to include some authentication/security so that it only sends the Emails you intend. Good luck!
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Mar 2014
    Posts
    2
    Thanks for the quick reply, this is probably a silly question, but is there any way to leave the current page as a plain html page and just call for the execution of that script.

    I didn't want to have to change the name of the page from x.com/x.html to
    x.com/x.php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles