Ability to ignore POST / GET form?
andrzejek
Polska
in Need Help
Hey, is it possible to force ignoring POST / GET forms?
If not, can It be possible (addition to script engine like, form method ignore) ?
If not, can It be possible (addition to script engine like, form method ignore) ?
Comments
But I cannot specify the form method like
When a form has method=post its a POST.
So imagine two similiar forms:
<form>...
<form method="post">
I want to match `post`, I don't care about get so:
form method=post
or
form method ignore=get
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Forms with POST and GET Methods</title> </head> <body> <h1>Forms with Random Fields</h1> <!-- POST Form --> <h2>POST Form</h2> <form action="/submit-post" method="POST"> <label for="name">Name:</label> <input type="text" id="name" name="name" required><br><br> <label for="email">Email:</label> <input type="email" id="email" name="email" required><br><br> <label for="age">Age:</label> <input type="number" id="age" name="age" min="18" max="100"><br><br> <label for="color">Favorite Color:</label> <select id="color" name="color"> <option value="red">Red</option> <option value="blue">Blue</option> <option value="green">Green</option> </select><br><br> <label for="subscribe">Subscribe to Newsletter:</label> <input type="checkbox" id="subscribe" name="subscribe"><br><br> <button type="submit">Submit POST</button> </form> <hr> <!-- GET Form Default --> <h2>GET Form</h2> <form action="/submit-get"> <label for="name">Name:</label> <input type="text" id="name" name="name" required><br><br> <label for="email">Email:</label> <input type="email" id="email" name="email" required><br><br> <label for="age">Age:</label> <input type="number" id="age" name="age" min="18" max="100"><br><br> <label for="color">Favorite Color:</label> <select id="color" name="color"> <option value="red">Red</option> <option value="blue">Blue</option> <option value="green">Green</option> </select><br><br> <label for="subscribe">Subscribe to Newsletter:</label> <input type="checkbox" id="subscribe" name="subscribe"><br><br> <button type="submit">Submit GET</button> </form> <!-- GET Form Explicit --> <h2>GET Form</h2> <form action="/submit-get" method="GET"> <label for="name">Name:</label> <input type="text" id="name" name="name" required><br><br> <label for="email">Email:</label> <input type="email" id="email" name="email" required><br><br> <label for="age">Age:</label> <input type="number" id="age" name="age" min="18" max="100"><br><br> <label for="color">Favorite Color:</label> <select id="color" name="color"> <option value="red">Red</option> <option value="blue">Blue</option> <option value="green">Green</option> </select><br><br> <label for="subscribe">Subscribe to Newsletter:</label> <input type="checkbox" id="subscribe" name="subscribe"><br><br> <button type="submit">Submit GET</button> </form>From my understanding modify submit type applies as the last step before the actual submission.