solution for post method not allowed

Discussion in 'PHP' started by learnerabn, Jul 26, 2010.

  1. #1
    i am developing a site in which i have quiz page.After submitting the page the page with answer should display.But i am having an error msg that POST method not allowed for URL exampl\quiz.html
    But it was properly running in my localhost the problem occurs only in online.

    Can any body help me?
     
    learnerabn, Jul 26, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could we see your code? both HTML and PHP.
     
    Deacalion, Jul 26, 2010 IP
  3. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry the code was actually not in php
    it was aspx pages but i'm trying to convert it in php
    first i just renamed the extension as .html instead of .aspx
    will it cost any effect in this case?
    but all my other pages are running.
     
    learnerabn, Jul 26, 2010 IP
  4. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #4
    if it's an asp page would it run if you change it to html? just asking, i'm not familiar with asp :)
     
    DomainCo.US, Jul 26, 2010 IP
  5. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If your ASP.net code is in C#, you can post it. I'll convert it to PHP.
    Also, simply renaming a file from .aspx to .html will not convert anything - it will just be treated the wrong way by the server.
     
    Deacalion, Jul 26, 2010 IP
  6. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Since i'm not familiar with ASP.net i dont know whether it is coded in C# or not.
    ok then what can i do here?
    Up to my knowledge i cant find any asp codes in that page except some commented lines...
     
    learnerabn, Jul 26, 2010 IP
  7. manzar

    manzar Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This error can occur in several situations. The following list includes some of the most common reasons developers encounter this issue:

    The action attribute of a form does not point to an executable script or there is no file specified for the action (in which case, the action field in the Property inspector is blank).
    The form’s action attribute points to an HTML file.
    A developer saves web pages with an HTM or HTML file extension instead of ASP, PHP, CFM or JSP file extensions, and specifies HTM or HTML as the default file extension in the site definition.
     
    manzar, Jul 27, 2010 IP
  8. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks for ur reply.
    yes i converted that action file as php file and it works now.
     
    learnerabn, Jul 27, 2010 IP
  9. vocongdanh

    vocongdanh Member

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #9
    put your code here, we'll help you !
     
    vocongdanh, Jul 27, 2010 IP
  10. infocusweb

    infocusweb Guest

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    send me your code , i want to see, after watching i can help you.ok
     
    infocusweb, Jul 27, 2010 IP
  11. dontkillme

    dontkillme Well-Known Member

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    123
    #11
    better php on this kind of things, im develop only on php. more easy and good to work
     
    dontkillme, Jul 27, 2010 IP
  12. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Seriously... why are you posting replies like this? they don't help at all.
     
    Deacalion, Jul 27, 2010 IP