Small coding question...

Discussion in 'Programming' started by tptnyc, Apr 4, 2008.

  1. #1
    Why it says "This method not allowed on this url" What is wrong with coding here?

    <p>
    <FORM METHOD="post" ACTION="index.html">
    <INPUT TYPE="submit" VALUE="VIEW ALL COLLECTIONS">
    </FORM>
     
    tptnyc, Apr 4, 2008 IP
  2. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #2
    [1] Would need to see the server side script. [2] one should be careful using -- method=post. Get is less invasive.

    Q...
     
    QiSoftware, Apr 5, 2008 IP
  3. Technica

    Technica Active Member

    Messages:
    624
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    <FORM METHOD="post" ACTION="index.html">

    Here you are using HTML page as action, which is not allowed for <form> tag, i think so. the action should be passed to some dynamic page containg serverside script like asp or php

    hope it helps
     
    Technica, Apr 5, 2008 IP
  4. johndoes

    johndoes Peon

    Messages:
    738
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it's a strange one. do you see that error on the browser?

    I thnik we need to see the rest of your code.


    and;
    An ".html" file can also be parsed as php or asp (i.e. dynamic) if the server has the right configuration. It's not just about the file extension. Besides, html does not include a mechanism to check "action" url. you can evet set a .jpg there and it will open the image file after submission.
     
    johndoes, Apr 5, 2008 IP
  5. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #5
    Yes replace by Action="index.php" or something simmilar to it.
     
    it career, Apr 6, 2008 IP