1
attock
Usage: new XoopsFormText()
  • 2007/2/27 0:27

  • attock

  • Not too shy to talk

  • Posts: 138

  • Since: 2006/8/20


Hi,

Consider the following code:

$formartist = new XoopsFormText('Artist', 'artist', 50, 50);
   
$fileform->addElement($formartist);

It will create a text field, with a title of artist.

Now my question is how to pre-fill the text field.

e.g. I want, by default, fill it with 'unknown' which can then be overwritten by the user.

Thank you.