How to insert text or variable in the form of the program php? Explain who knows ...

    2 answers 2

    If you thoroughly understand your question, you need to do this:

    <?php $vn1 = 'Текст213123123'; echo '<input type="text" name="ololo" value="'.$vn1.'"/>'; ?> 

      PHP server language. Forms are created by the browser and cannot interact.

      To add an input field - enter

       <input type="text" name="var_name" value="var_value" /> 

      , in php, the value will be available from $ _GET ['var_name']. Or, if the form has method = "post", then from $ _POST ['var_name'] .