Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1035
  • Last Modified:

Create module in joomla

Hi, I just need to create a module that inserts a new row in a table by submitting a form.

ex: visitors enter email address in an input field, then it will be stored in db

I'm new to joomla, however I know how a module works (template, helper, etc...)

Thanks!
0
blueshaolin
Asked:
blueshaolin
  • 9
  • 5
1 Solution
 
lazysheepmediaCommented:
Hi Blueshaolin

Would it be easier to use a form component and link to your menu?

http://extensions.joomla.org/extensions/contacts-and-feedback/forms

Chronoforms is free and has been used by me. I really like it for simple forms like yours.

Regards

Mark
0
 
blueshaolinAuthor Commented:
Thanks for replying lazysheepmedia, however I don't get the idea.

The form must be visible in every page, that's why I think I should use a module, and what do you mean with 'link to your menu' ?

0
 
lazysheepmediaCommented:
Hi blueshaolin

Give me 10 minutes and I'll knock up a demo

Regards

Mark
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
lazysheepmediaCommented:
sorry i have been distracted

what i am suggesting is that you use a form component and add the form to a custom module?

regards

Mark
0
 
lazysheepmediaCommented:
0
 
lazysheepmediaCommented:
here are your results that are saved to your database in admin to view

Regards

Mark
email.png
0
 
lazysheepmediaCommented:
A clearer view
email.png
0
 
lazysheepmediaCommented:
I need to turn the demo off so let me know if it is useful and if i can turn it off

thanks

mark
0
 
blueshaolinAuthor Commented:
Ok you can turn it off, That's not what I need and maybe it was my mistake since I didn't explain it very well.

Finally I created the module on my own and now it works great, so I'm going to give you C because that's also a possible solution, is that ok ?

Thanks a lot for your help and your time!

0
 
lazysheepmediaCommented:
yes no problem

can i see what you have done so i can see what you wanted?

regards

mark
0
 
blueshaolinAuthor Commented:
Just one more question to give you A (if you don't mind):

Can I change the target table to store the form fields with ck forms/chronoforms ?
0
 
lazysheepmediaCommented:
yes you can but it will require some coding as i believe it uses its own tables - just curious..why would you want to change the table it uses?
0
 
blueshaolinAuthor Commented:
because i'm like 'adapting' a form that comes in a plugin for an specific component.

Basically I want to do the same but in a module since I'm not going to show the plugin in its original position/pages/etc, I already tried plugin in module but it didn't work so I found it easier to create a form that inserts the data straight to the table.
0
 
blueshaolinAuthor Commented:
The provided solution is a good alternative, however that's not exactly what I needed. Thanks!
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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