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:
also, created handler through content->section manager
the handler not work . seems, handler isn't invoking reason. please advise wrong.
thanks,
slava
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
Post a Comment