+ 3

how do i use post method in this code instead of get method?

https://code.sololearn.com/WdWbqtffLEtm/?ref=app

10th Mar 2018, 11:48 AM
Manan
Manan - avatar
2 Answers
+ 4
you have to change the form tag attributes to something like..... <form method="post" action="$_SERVER['PHP_SELF']">
10th Mar 2018, 11:53 AM
Strange
Strange - avatar
+ 4
"form" tag has an "method" attribute that is used for your case: <form method="POST" >... But its unuseful if you dont set "action" attribute
10th Mar 2018, 11:54 AM
KrOW
KrOW - avatar