<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br class="webkit-block-placeholder"></div><div>&nbsp;&nbsp;If you have a look at the definition of the onclick parameter (<a href="http://www.w3schools.com/jsref/jsref_onclick.asp">http://www.w3schools.com/jsref/jsref_onclick.asp</a>), you'll see that it's javascript-specific.</div><div><br class="webkit-block-placeholder"></div><div>&nbsp;&nbsp;If you want to post parameters to C code you should be posting variables to a page and retrieving them from the taget page using request_get_arg()...&nbsp;</div><div><br></div><div>&nbsp;&nbsp;Check out the tutorial for an example:</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><a href="http://koanlogic.com/klone/tut.html">http://koanlogic.com/klone/tut.html</a></div></div><div><br></div><div>good luck!</div><div>sd</div><div><br class="webkit-block-placeholder"></div><br><div><div>On 10/mar/08, at 14:43, diakat 2000 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>I've just another newbie question: How could I do event handling with<br>C/C++ functions?<br><br>I've a form with serveral input field. I' m able to access on a sqlite<br>database and display some values in the fields. Now I want to save<br>user changes back in database. But something goes wrong. My code looks<br>like:<br><br><br>// C method<br>int dbSaveDescriptionAll ()<br>{<br>... saving all Fields in database (sqlite)<br>return 1;<br>}<br><br>// my form<br> &nbsp;&lt;form action ="testpage.kl1" method ="post" enctype="multipart/form-data"&gt;<br><span class="Apple-tab-span" style="white-space:pre">        </span>.... // some input-fields<br><br>// my form button<br> &nbsp;&lt;% io_printf (out, &lt;input type= \"button\" name = \"bt_save"<br>value=\"save\" onclick= \"dbSaveDescriptionAll()\"/&gt;");<br>%&gt;<span class="Apple-tab-span" style="white-space:pre">        </span><br><br>It seems that the function dbSaveDescriptionAll() is uncalled.<br><br>I hope somebody could tell me what I'm doing wrong.<br><br>Ciao<br><br>_______________________________________________<br>Klone-users mailing list<br><a href="mailto:Klone-users@koanlogic.com">Klone-users@koanlogic.com</a><br><a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br><br></blockquote></div><br></body></html>