0

I know that if a form is with GET method, I can take "name" parameter from an input element and use it as a parameter in URL.

Example: https://www.google.com/search?q=form

This form has:

<input name="q">

Question: for a form with POST method is it possible to fill input fields from a browser's address bar?

Trts
  • 985
  • 1
  • 11
  • 24
  • See https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript – John Paul R Oct 01 '21 at 17:18
  • The question is not about JavaScript. It is about HTML. – Trts Oct 01 '21 at 17:20
  • Then I am fairly certain that the answer to your question is no, it is not possible. You can use JS to fill the form fields, but this is impossible using HTML alone afaik. – John Paul R Oct 01 '21 at 17:21
  • The question is not about JS. It is about anything else. Starting from security, and finishing at global problems. But it is in no way connected to JS. The question is important for me: I would like to understand what prevents it. It is security. – Trts Oct 01 '21 at 17:25

1 Answers1

1

The browser's address bar is always a GET and never a POST.

Rob
  • 14,746
  • 28
  • 47
  • 65