I'm developing a site using joomla template. I want to create a registration form & I design it with html in a Joomla Article. For data passing to db I have created a PHP file. But I have a problem in submitting data. I gave form action="php file name" & I save the PHP file in index path. But system is not working. Please tell me where I need to save that PHP file & how to link my joomla article & PHP file ???
0
votes
Hi and welcome to SO, Your question is rather confusing but; I would recommend you google some basic tutorials on how to make a module / component in Joomla or see if somebody already made something you could use.
- Epodax
Please don't start writing custom PHP code and injecting it in your article. This is not how Joomla is supposed to work. It's a MVC CMS and uses extensions. You should really look for a Form extension
- Lodder
There are lots of form designer extensions which you can easily use to achieve this. Check out fabrikar.com
- jtb
2 Answers
0
votes
0
votes
Create a folder inside plugins in main directory. Name it whatever you like, lets say, "customplugin". Put your form handling file in that. Give the absolute path of this file in the form action URL.
This should work. Also, kindly check if the form tags are coming correctly in the article.
As others are saying, you are actually not using the Joomla CMS properly, but anything and everything is possible...
Mistakes are always forgivable, if one has the courage to admit them. -- Bruce Lee