in reply to Re^2: html input value
in thread html input value

Your question could be seen to require clarification because the example you posted will just manually print a header (since you use CGI you can use it to print the header for you) and display an text input with a predefined value. You have no <form> element, and no way of submitting the input to your script. You seem to be missing the very basics of how all this hangs together. https://developer.mozilla.org/en-US/docs/Web as well as the CGI documentation (note the clear warnings at the start), Tutorials -> Web Programming I know what I mean. Why don't you?.

Replies are listed 'Best First'.
Re^4: html input value
by bgblue (Initiate) on Oct 09, 2018 at 11:32 UTC

    yes i know. my html has no form. i just want to get value when the page loads

      You say
      i just want to get value
      Before you can get that, you need to decide FROM WHERE you want to get it.

      Then your understanding of everything I've linked to is wrong.