0
Как в php вставить данные из формы в переменную?

1 ответ 1

1
<html>
<head>
<title></title>
</head>
<body>
<form name="stat" action="" method="post">
URL: <input name="url" type="text" size="87"><br />
<input type="submit" name="go" value="Отправить"><br /><br />
</form>
<hr />
</body>
</html>
<?php

if (isset($_POST['go']) && $_POST['go'] != null && 
isset($_POST['url']) && $_POST['url'] != null){

$url = $_POST['url'];
echo $url;

}
?>

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.