Page 1 of 1

triggering events with submit buttons

Posted: Sat Jun 21, 2008 9:54 am
by worker201
(I'm pretty new to this, so excuse ignorance of the codebase or terminology)

What I would like to do is have a button (or maybe just a link if necessary) on a page. When the button gets clicked, some stuff happens - a system variable is set, a value gets inserted to an sql table, or the content of the page changes based. Trouble is, I have no idea how to coordinate button-clicks with PHP behavior. I've been trying to figure out the 'sort' button on "memberlist.php", as it seems to do the least amount of work, and I can sorta trace its functions, but not all that well.

If someone could point me to some further resources, or explain how something like this would work, that would be great. Thanks!

Re: triggering events with submit buttons

Posted: Sat Jun 21, 2008 12:25 pm
by Brf
Those are simple link buttons. They link to a webpage just like any other link.

Re: triggering events with submit buttons

Posted: Sun Jun 22, 2008 9:05 am
by worker201
I guess what I really wanted was information about how to write HTTP_GET_VARS and HTTP_POST_VARS statements, and throw together urls that would work with them. But I think I maybe have it.

You can mark this as solved.