Submit HTML form with GET method with full path

I am trying to submit a form with a GET method and the action "index.php? Id = 3". The problem is that it jumps to the specified URL, but disables the "? Id = 3" part. I need so that I can identify the user. Any ideas on how I can submit the entire URL? I do not want to change this method, the design is very complex than I told you here. This is a simple version.

Any ideas? Thanks.

+1
source share
1 answer

Add a hidden field ( <input type="hidden" name="id" value="3" /> ) to the form and use only index.php as an action.

+5
source

Source: https://habr.com/ru/post/1382102/


All Articles