triggering events with submit buttons

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
worker201
Registered User
Posts: 17
Joined: Fri Apr 11, 2008 3:49 am

triggering events with submit buttons

Post 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!
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: triggering events with submit buttons

Post by Brf »

Those are simple link buttons. They link to a webpage just like any other link.
worker201
Registered User
Posts: 17
Joined: Fri Apr 11, 2008 3:49 am

Re: triggering events with submit buttons

Post 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.
Post Reply

Return to “[2.0.x] MOD Writers Discussion”