Hi, I am generating a table for use as a revision form. The following line:
printf("<td><input type='text' name='%s' onfocus='showDisplayName($v[1], $v[2]);'
id='%s' value='%s'></input></td></tr>\n", strtolower($key), strtolower($key), $value);
has the php function showDisplayName() embedded in it. This function will not work. If I write the identical line in a pure HTML page it works fine.
Attachments: reviseTbl.png Generated output table
generatedHTML.png Generated code
ContactRevise.php Source code
Would appreciate any help in making the changes so it works.
Thanks in advance, RP