Answer the question
In order to leave comments, you need to log in
How to process PHP input data?
Good day!)
I am very interested in such a thing as data processing through php.
I know that everything is done simply through $_get and post Request, but the point is that it is necessary to implement this simply for Input, which, by type of input, is numbers. Namely, you need to write that you can’t enter a number into it less than or equal to 0.
In fact, there is an if else construct, But I can’t figure out how to take the data from the field and do something further, help me !)))
Answer the question
In order to leave comments, you need to log in
I know everything is done simply via $_get and post Request
$num = $_GET['num'] ?? 0;
if ($num <= 0) {
return false;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question