in reply to is it possible to write two statements one for creating a widget and setting value to the widget?

I assume you're talking about CGI.pm (please always say things like that in your postings, don't let us guess).

textfield() simply returns a string that, when used as HTML, makes a text field appear. If you want to change that, you have to manipulate the text. But I recommend against that - create it correctly in the first place. Or use a template system instead.

  • Comment on Re: is it possible to write two statements one for creating a widget and setting value to the widget?
  • Download Code