0
Please explain how to wirite isset php with button
4 ответов
+ 3
Hey, max you have done wrong here
if (isset($_POST['submit']))
forget to close if condition
+ 2
Post method:
if (isset($_POST['submit'])) //submit is the button name.
{
//code here if the button was clicked.
}
and the same as get method: use $_GET instead of $_POST.
isset() is from typename bool and can have true or false as a return type.
+ 2
yeah it was 3am in the morning haha. I edit that :)
0
thanks for explain :)