PHP - form action calling itself, how to display everything in 1 page?

后端 未结 9 1361
暖寄归人
暖寄归人 2021-01-22 14:43

I have two .php files as such:

test1.php



    Sample


    
9条回答
  •  时光取名叫无心
    2021-01-22 15:36

    Check if $_POST["userNumber"] isset, and echo the form if it's not.

    
    
        Sample
    
    
        ';
                echo 'Please enter a number 
    '; echo ''; echo ''; } ?>

提交回复
热议问题