Adding custom form and its handler - Joomla! Forum - community, help and support


hello,

i'm trying create own simple form , handler. i'm using joomla 1.5. created article , putted there following code using sourcerer:

code: select all

print "<form action=\"index.php\" method=\"post\" name=\"adminform\">";
print "<input type=\"text\" name=\"field\"/><br/>";
print "<input type=\"hidden\" name=\"task\" value=\"showme\" />";
print "<input type=\"submit\" name=\"submit\" value=\"submit\" />";
print "</form>";


also, created handler through content->section manager

code: select all

<?php
function showme()
{
$data = jrequest::getvar( 'field' );
echo "my text: ".$data;
}
?>


the handler not work . seems, handler isn't invoking reason. please advise wrong.

thanks,

slava






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support