SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Submit for "post" action= html file not working

    I have the below html file which I am trying to submit
    but when I click on the submit buton I get
    "The page cannot be displayed" page though whatever.html appears in the url box and a refresh shows it. What am I doing stupid?

    Thanks very much, Tom.

    <html>
    <head><title>test</title></head>

    <body>
    <form name="TheForm" method="post" action="whatever.html">

    email address : <input type="text" name="email" size="50" value=""><br>
    <input type="submit" name="submitButton" value="Tester" size="10"><br>

    </form>
    </body>
    </html>

  2. #2
    Weird Little Girl Desdelena's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont think your action can be an HTML page. I think it needs to be some sort of script, like PHP, Perl/CGI ect.

  3. #3
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes to process your form, you'd need a server-side script... specifying a static html page in your action attribute would POST the form data there (whatever.html in this case) but being a static page, it can't do anything with the POSTed data...

    there are freely available formmail scripts on the web and are in several different languages like PHP, Perl, ASP, JSP like Desdelena just mentioned... if you do want one go look for the one in a language that your server supports... or you can start learning how to write one even

  4. #4
    SitePoint Member
    Join Date
    May 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that. I do need tp process a bunch of stuff so it will be "whatever.asp". Could you suggest an URL to read about what server script I need to post this page to whatever.asp please, I have no idea how to do that. Thannks a lot, Tom.

    Originally posted by redemption
    yes to process your form, you'd need a server-side script... specifying a static html page in your action attribute would POST the form data there (whatever.html in this case) but being a static page, it can't do anything with the POSTed data...

  5. #5
    SitePoint Member
    Join Date
    May 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW, I am using Javascript, I found The Definitely Unofficial Guide to Formmail http://www.appbuild.com/formmail_help.html

    Will do a bunch of reading later.

    Cheers, Tom.

  6. #6
    SitePoint Member
    Join Date
    May 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...frommail might be more than I need, I have spent lots of time surfing trying to find the answer to my question - I just want to do this simple post and access the osted form's data on the new page. Can you rcommend another helper site that coul help?

    Thansk very much, Tom.

  7. #7
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  8. #8
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Matt's formmail is buggy and insecure, however there is a virtually identical (but better written) alternative available here:

    http://nms-cgi.sourceforge.net/

  9. #9
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Skunk
    Matt's formmail is buggy and insecure, however there is a virtually identical (but better written) alternative available here:

    http://nms-cgi.sourceforge.net/
    I'm sure that software you're recommending is good, but I've always used Matt's Formmail and I think what you're saying is a bit of an overstatement. Granted, several exploits have been discovered, but quickly plugged and fixed ... all software is inevitably going to have bugs and I am glad Matt is on top of keeping his up-to-date and secure.

  10. #10
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    While I have yet to hear of any exploits for the latest version of FormMail (1.91) the security record for previous versions of the script has been less than impressive. Version 1.9 had some serious exploits:

    http://online.securityfocus.com/archive/1/252232
    http://www.monkeys.com/anti-spam/formmail-advisory.pdf

    Verion 1.6 (the most widely installed version even now) is one of the most popular ways for spammers to relay spam anonymously - in fact according to security focus FormMail attacks were the third mose popular web server attacks for the first quarter of 2002!

    http://www.securityfocus.com/corpora..._q1_2002.shtml

    Given FormMail's track record I consider NMS a much safer alternative. Even Matt himself has now started linking to the NMS version of his scripts from the FormMail site:

    http://www.scriptarchive.com/nms.html


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
  •