Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

joomla 1.5 : get form name

Posted on 2010-11-29
4
Medium Priority
?
399 Views
Last Modified: 2012-08-01
hi, can i know how to get a form name in Joomla 1.5 ?
0
Comment
Question by:bcv2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 26

Expert Comment

by:lenamtl
ID: 34229579
Hi,

I'm not sure what you are looking for, could you elaborate your needs?
0
 

Author Comment

by:bcv2010
ID: 34229723
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
 
LVL 4

Accepted Solution

by:
h4hardy earned 500 total points
ID: 36542944
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
 
LVL 26

Assisted Solution

by:lenamtl
lenamtl earned 500 total points
ID: 36546761
// 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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a tutorial for making your own Joomla templates. Note before reading, you should have some existing knowledge of web development using HTML and CSS. Design Layout: Design your template in a graphics program like Adobe PhotoShop or Corel…
What you will need: Any version of Photoshop or similar product (examples in Photoshop) Internet Access FTP Access to your joomla install or ability to upload images within joomla administrator backend Create Image: Lets start off with cre…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question