Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question