PHP danna un warella

G.D.1.nirmal

Well-known member
  • Feb 16, 2008
    15,912
    1,895
    113
    35
    srilanka
    Mama podi form ekak hadala data enter karanna haduwa mysql eken phpmyadmin eka through. okkoma karaata passe data submit karahama menna me message eka enawa mokada karanne??

    This page isn’t working​

    If the problem continues, contact the site owner.
    HTTP ERROR 405

    Hariyata mysql ekata connect wela nathi seen ekak neda tiyenne? Help!!
     

    G.D.1.nirmal

    Well-known member
  • Feb 16, 2008
    15,912
    1,895
    113
    35
    srilanka
    Ow ow meka tamai wenne

    15.5.6. 405 Method Not Allowed

    The 405 (Method Not Allowed) status code indicates that the method received in the request-line is known by the origin server but not supported by the target resource. The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.
    A 405 response is heuristically cacheable; i.e., unless otherwise indicated by the method definition or explicit cache controls (see Section 4.2.2 of [CACHING]).

    mysql ekata uba phpmyadmin eken da data enter karanna giye? ehema karaddida awe me error eka? nattam ube php ekenda?

    kokatath screenshot ekak dapan. uba kiyana eka pahadili madi

    https://httpwg.org/specs/rfc9110.html#status.405
    ------ Post added on Aug 13, 2023 at 6:18 PM
    Ow ow meka tamai wenne

    15.5.6. 405 Method Not Allowed

    The 405 (Method Not Allowed) status code indicates that the method received in the request-line is known by the origin server but not supported by the target resource. The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.
    A 405 response is heuristically cacheable; i.e., unless otherwise indicated by the method definition or explicit cache controls (see Section 4.2.2 of [CACHING]).
    ------ Post added on Aug 13, 2023 at 6:28 PM
     
    • Like
    Reactions: Chimpanzee Putha

    AlphaVille

    Well-known member
  • Sep 26, 2021
    2,303
    3,468
    113
    Srilanka
    80976.gif
     

    Identity

    Well-known member
  • Aug 15, 2016
    23,137
    18,709
    113
    අදාල නෑනේ
    The HTTP ERROR 405 typically indicates that the HTTP method used in the form submission is not allowed for the requested URL. By default, HTML forms use the HTTP POST method to submit data.

    There can be several reasons why you are encountering this error:
    1. Check your form's method attribute: Ensure that your form's method attribute is set correctly to "POST". For example: <form method="POST" action="your_php_script.php">.
    2. Check your PHP script: Make sure that your PHP script is configured to accept POST requests. You can check this by verifying that the script uses $_POST to access the submitted form data. For example: $name = $_POST['name'];.
    3. Check your server configuration: Some server configurations restrict certain request methods like POST for security reasons. You may need to consult with your hosting provider or server administrator to ensure that POST requests are allowed for your PHP scripts.
    4. Check for conflicting code or plugins: If you are using a CMS or framework, it's possible that there may be conflicting code or plugins causing the issue. Try disabling any plugins or code snippets that may be interfering with the form submission.
    5. Check your URL: Ensure that the URL you are submitting the form to is correct and accessible. Verify that the file or script exists in the specified location.
    By troubleshooting these possibilities, you should be able to identify the cause of the HTTP ERROR 405 and resolve the issue with your PHP form submission.
     
    • Like
    Reactions: G.D.1.nirmal

    G.D.1.nirmal

    Well-known member
  • Feb 16, 2008
    15,912
    1,895
    113
    35
    srilanka
    bump

    The HTTP ERROR 405 typically indicates that the HTTP method used in the form submission is not allowed for the requested URL. By default, HTML forms use the HTTP POST method to submit data.

    There can be several reasons why you are encountering this error:
    1. Check your form's method attribute: Ensure that your form's method attribute is set correctly to "POST". For example: <form method="POST" action="your_php_script.php">.
    2. Check your PHP script: Make sure that your PHP script is configured to accept POST requests. You can check this by verifying that the script uses $_POST to access the submitted form data. For example: $name = $_POST['name'];.
    3. Check your server configuration: Some server configurations restrict certain request methods like POST for security reasons. You may need to consult with your hosting provider or server administrator to ensure that POST requests are allowed for your PHP scripts.
    4. Check for conflicting code or plugins: If you are using a CMS or framework, it's possible that there may be conflicting code or plugins causing the issue. Try disabling any plugins or code snippets that may be interfering with the form submission.
    5. Check your URL: Ensure that the URL you are submitting the form to is correct and accessible. Verify that the file or script exists in the specified location.
    By troubleshooting these possibilities, you should be able to identify the cause of the HTTP ERROR 405 and resolve the issue with your PHP form submission.
    couldn't find anything wrong with any of these stuff bro :(
    ------ Post added on Aug 14, 2023 at 7:35 AM