L
L
lik1732020-05-13 21:07:43
PHP
lik173, 2020-05-13 21:07:43

How to do form processing?

I want to make users simple algorithms.
Type:

/*ЭТО ПРИМЕР!*/
<?php
if (!isset($cardnumber)) $m = "Введите номер карточки";
 elseif ($cardnumber == "" )  $m = "Ваш номер пуст!";
 else $m = "Ваш номер: $cardnumber";
?>
<html>
<head>
<title>Пример обработки ввода</title>
</head>
<body>
<h1><?php echo $m ?></h1>
<form name='form1' action='<?php echo $PHP_SELF ?>' method='post'>
 <p>Номер карточки:
 <input name='cardnumber' type='text' size='20'>
</form>
</body>
</html>

How to do this?
But in a different way, with more variables?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question