• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

joomla 1.5 : get form name

hi, can i know how to get a form name in Joomla 1.5 ?
0
bcv2010
Asked:
bcv2010
  • 2
2 Solutions
 
lenamtlCommented:
Hi,

I'm not sure what you are looking for, could you elaborate your needs?
0
 
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
0
 
h4hardySr. Software EnginnerCommented:
hi,

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

0
 
lenamtlCommented:
// get the JForm object
$form = &JForm::getInstance('myform', $pathToMyXMLFile);

Check this tutorial this may help
http://www.howtojoomla.net/how-tos/development/getting-started-with-jform
0
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.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now