I’ve implemented hook_menu
and in page callback there is a function in my module which retrieves some records randomly and theme them with theme_table
. Now I want a button on the page for sending this page exactly as it is to a predefined email address without refreshing the page because of randomly selected records.
I placed a button through simple HTML code but don’t know how I can implement it’s onClick
function. Or is there any better way to do that? Thanks