Jump to content

save custom module form fields in context


j.k.r
 Share

Recommended Posts

I am working on a custom module and need some help getting user input.  The module has few input fields (text, radio, etc.) and is hooked to the left column.  I would like the user to be able to fill in those fields and then press a button to save his/her selections.  When he/she presses the button, I would like to store the values in context->cookie variables so I can use them elsewhere in my module.  I'd like it to be something like an ajax experience in that a new page doesn't get loaded when the button is pressed, but there is some feedback displayed in the module's .tpl file to let the user know that the values have been saved.

 

What is the best way to accomplish this?  I thought I could just call a php function in my module, but I haven't seen any examples that explain how to do that.

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More