Re: Quickform - edit form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux