Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form method change from POST to GET #37706

Open
benyrfg opened this issue Feb 16, 2022 · 2 comments
Open

Form method change from POST to GET #37706

benyrfg opened this issue Feb 16, 2022 · 2 comments

Comments

@benyrfg
Copy link

benyrfg commented Feb 16, 2022

Description

AMP page with contact form:

<form method="POST" action-xhr="mail/send.php" target="_top">

As you can see, the method is set to POST. But on server side implementation (PHP), data from this form are sent via GET method.

echo $_SERVER['REQUEST_METHOD'];

GET

The form had previously worked without problems for several months. This changed few days ago out of nowhere (no previous code changes).

I have no idea what causes the form method change.

Reproduction Steps

  1. Live URL: https://sigi-sitom.cz/#kontakt
  2. fill and send the contact form
  3. at the end of the error message is returned $_SERVER['REQUEST_METHOD'];

Relevant Logs

No console warnings about this issue.

Browser(s) Affected

Chrome, Firefox, Safari, Edge

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

2202042210001

@benyrfg
Copy link
Author

benyrfg commented Apr 27, 2022

OK, AMP is really dead.

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale Inactive for one year or more label Jun 18, 2023
@stale stale bot removed Stale Inactive for one year or more labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants