Overclock.net banner

How to link to button press?

435 Views 2 Replies 3 Participants Last post by  xtascox
So I am trying to figure out how to let users link to a button that applies an action. Here is the code I am trying to experiment with, if its possible I am going to try and make a gaming system with PHP but linking to these buttons is kinda vital, otherwise I need to change the way I am doing things currently.

Code:
Code:
Is it possible to have this appended to the url to apply the same action as the button press? Ie. So I can have a link to the same action that this button press sends to the server?
1 - 3 of 3 Posts
If you are using php your _GETs and _POSTS would be the wrong way round if you just used a link like...

yoursite.com/index.php?submit=Thanks&user=000001&action=Play

However you could either...
1. Use a javascript link which just subbmittd the form(document.forms['formName'].submit(); )
2. (PHP) Change the form method to GET so variables would register as _GET wether you used the form or the above link

Im not 100% this is what you mean so do say if im barking up the wrong tree lol!
I might be able to help you since I write php code for a living but can you explain better what it is that you are trying to do?
1 - 3 of 3 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top