Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Automatic e-mailing

    I'm trying to set up a page with a virtual coin-toss type application, which I've managed to do (you click the button and a random alert box tells you heads or tails).

    What I'd like is to add an input box where the person ebters their name (easy enough) and also have it automatically e-mail me the person's name and their results when they toss the coin in a pre-formatted message - "Bob got heads" sort of thing (not so easy).

    I've found a few programs which give them the opportunity to mail their results, but can't find one that will do it automatically. Anyone know if this is possible?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://php.net/mail

    ^^^ you need a serverside mail script.
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #3
    New Coder
    Join Date
    Mar 2003
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    very simple to do using PHP however if you are bent on setting it up on the clientside then i do believe javascript has inputbox's. Combine this with the php mail() function and thats your best option
    LocalHoster.com
    Your Price. Your Features. Your Hosting™

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    then that's not using clientside at all


  •  

    Posting Permissions

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