I have a page in php that gets from the url such as this code example
<form action="welcome.php" method="get">
//some interesting code here
</form>
The issue now is that when i do the GET depending on its value I need to do a POST,
How can I use action="get" and action="post" in the same page?, I am kind of new to PHP so I am not sure if I can use two tags (“i dont think so but please correct me if i am wrong”).
PS: I am getting to the same page “welcome.php” and posting to itself again, and depending on the value I am going to show different content.
Thank you
Your question is a little unclear, but if I’m understanding it correctly, you can certainly pass GET variables via the
form‘saction: