joomla 1.5 : get form name

hi, can i know how to get a form name in Joomla 1.5 ?
Who is Participating?
h4hardyConnect With a Mentor Sr. Software EnginnerCommented:

you can try with the below code or also try with the javascript to get the form name..

  $f = jForms::create("myapp~contact");
        $view->body->assign('form', $f );

Open in new window


I'm not sure what you are looking for, could you elaborate your needs?
bcv2010Author Commented:
i am looking for Joomla code that could get the name of the form on the page , posibly JForm:getformname ? or may be some other method but it is to be for Joomla 1.5
lenamtlConnect With a Mentor Commented:
// get the JForm object
$form = &JForm::getInstance('myform', $pathToMyXMLFile);

Check this tutorial this may help
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.