Is there a way to submit some of the data using GET
method and the rest using POST
method to the same page?
There are some sensitive info in the page that needs to be submitted with POST
, also there are some info like page_number
and search_phrase
that should to be submitted with GET
.
I've tried creating two forms one with GET
method, the other with POST
method and used JavaScript to submit them at the same time but only the GET
form is submitted.
The data which should be sent by GET
is not constant so that it can not be appended to the end of form action like below:
<form action="form.php?page=3&search=sth">
EDIT
To describe more, there is a list which normally shows all the notes and it has paging and the data is searchable (GET
), but there is a situation which a contact's ID is sent to this list, then only the notes that belong to this contact should be displayed with all the functions mentioned (paging and searching).