从用php创建的表单中获取数据到另一个php [重复]

My Code Looks Like:

<?php
    echo "
        <form action='form.php'>
            <input type='text' name='value'>
            <input type='submit'>
        </form>
    ";
?>

And form.php is

<?php
    echo $_POST['value'];
?>

Error Code is:

Notice: Undefined index: value in C:\xampp\htdocs\dynamic\form.php on line 2

Is it possible to get the value of field created using echo command?I don't want to use database,jQuery etc.

</div>

You need to set the form method to post

<?php
    echo "
        <form action='form.php' method='post'>
            <input type='text' name='value'>
            <input type='submit'>
        </form>
    ";
?>

you are missing method="post" in form tag