Login Retreive lost passwordRegister
Search

Forum Index / General / Textarea value based on onselect

[ This topic is unsolved! ]

  Jim Jakobsen 04 October 08 / 12:46  
Hi
First I must say that this is a fantastic script.

I need help with getting a textarea value load after select a value from a selectbox. How do I do this.
The value in the textarea is supposed to load dynamic from a mysql table based on id set in selectfield

$query = 'SELECT id, tagname from index_cronscriptvalues';
$scripts = mysql_returnArray($query,'id','tagname');

$form -> selectField("selectvalue", "selectvalue", $scripts, FH_NOT_EMPTY);
$form -> textArea( "textareavalue", "textareavalue", "", "100", "7");

  Johan Wiegel (Admin) 23 October 08 / 09:28  
You should write an AJAX handler to fill the textarea.

  Top


powered by PHP-GLOBE   © 2004 - 2009 FormHandler. All rights reserved.   -   Open source license