SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Market Harborough, UK
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    e-mailing a form submission

    My apologies if this is the wrong forum!

    Can anyon tell me if it is possible to have aform on a webpage that submits an e-mail of the results to a fixed address and which doesn't use any server-side scripting?

    We have a small website running on a server with no scripting languages installed. The site is entirely static apart from the need to have a single form on it to gather some basic information.

    Now, I could install PHP or similar and get it all set up that way, but I was wondering if the options are there in the <FORM> tag to simply have the form submitted via e-mail.

    TIA
    Paul Simpson, BSc, MCNI, MCNE

  2. #2
    SitePoint Addict Shalin's Avatar
    Join Date
    Sep 2003
    Location
    __beyond
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think frontpage extensions can do the job for you.

    Cheers,
    Shalin
    Last edited by Shalin; Oct 2, 2003 at 10:06.
    Help Desk Software - Helpdesk Pilot
    Flash Screensaver - Screenswift for Windows
    Online Polls - Tezaa.com
    Address Book Software - Addza for Windows

  3. #3
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One way of doing it is:
    HTML Code:
    <form method="post" action="mailto:[address]" enctype="multipart/form-data">
    but the downside is that the user submitting the form must have an e-mail client set up on their machine [img]images/smilies/smile.gif[/img]

    -Sam
    Sam Hastings

  4. #4
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Market Harborough, UK
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, folks!

    The frontpage extensions is a no-go since I don't have them on the server. (I'm not sure if they are even available and I doubt I'd want them if they were - bah Frontpage! It'd be easier to add PHP...)

    I'm not sure about the second option - I will need to check it out with the owners of the site to see if it is likley to cause a problem with their users.

    One question.... Wouldthis actually fire up the e-mail client, create an e-mail and then the user would have to click "Send" or would it all happen in the background?

    TIA
    Paul Simpson, BSc, MCNI, MCNE

  5. #5
    SitePoint Addict Shalin's Avatar
    Join Date
    Sep 2003
    Location
    __beyond
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the second option is as good as having your email address displayed. What if after filling the form the client hit the submit and because he doesn't use a email client - it all goes in vain.

    Frontpage extension are available on most server. Check with your hosting company.

    Cheers,
    Shalin
    Help Desk Software - Helpdesk Pilot
    Flash Screensaver - Screenswift for Windows
    Online Polls - Tezaa.com
    Address Book Software - Addza for Windows

  6. #6
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Market Harborough, UK
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the advice, Shalin!

    I don't want to appear ungrateful but FP is not an option, as I said. We host the server ourselves, it is Apache running on Novell NetWare. I was hoping to avoid adding anything "server-side" at all! There is not interaction (server side) on the site apart from this one form. If it turns out that I have to, then PHP is far more use to me than FP extensions. We try to avoid tying ourselves to proprietary stuff (even from M$) which is why we use PHP internally rather than ASP - even on NT/W2K based webservers.

    If, as you suggest, it isn't possible to reliably do this on the client only, then we will need to put PHP on the server. Sad, but there you go!

    Paul
    Paul Simpson, BSc, MCNI, MCNE

  7. #7
    SitePoint Addict Shalin's Avatar
    Join Date
    Sep 2003
    Location
    __beyond
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    then i guess thats the way out. PHP is good for sure.

    Good luck.

    Cheers,
    Shalin
    Help Desk Software - Helpdesk Pilot
    Flash Screensaver - Screenswift for Windows
    Online Polls - Tezaa.com
    Address Book Software - Addza for Windows


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
  •