DID YOU TRY THIS??

<?php

  echo "<input type=\"text\" value=\"$yourVariable\" />\n";

?>

Look! I just assigned data to the form!



Chris.

I'm using Pear Quickform (hence my subject title) with Smarty. The value needs to be assigned to the Quickform object somehow.


Creating the field with:
$form->addElement('text', 'year', 'Year:');

How do I add the value?

Leonie

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to