USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 9/29/09 12:09 PM
Sign-Up: 06/13/09
Posts: 32
Ok so like... I've been at this for a few hours now and no luck, tried many tutorials and nothing worked.... what im trying to do here is have a
<a href=''>
link actually execute a PHP method when clicked... i tried just sticking it in there and it worked... but not when clicked... it just executed it automatically.... any ideas??
-Sam 'DJMAX' Eddy
Posted at: 9/29/09 12:27 PM
Sign-Up: 03/06/09
Posts: 657
This sounds like a job for AJAX
Getting bored? View my art, Read a story or visit the Programming Forum Projects page
Posted at: 9/29/09 12:48 PM
Sign-Up: 09/13/03
Posts: 12,274
There is no "onClick" method for PHP. You should use the Javascript onClick to trigger an Ajax request to a separate page on which the PHP method is executed and returned.
Posted at: 9/30/09 04:21 AM
Sign-Up: 09/10/04
Posts: 3,647
This sounds like a clear case of not understanding what php is. Php is a serverside scripting language. It is not a client side scripting language (at least as far as you can publicly consider it). Php responds to http requests, not direct user events.
Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.
Posted at: 10/4/09 05:40 PM
At 9/30/09 04:21 AM, henke37 wrote: This sounds like a clear case of not understanding what php is. Php is a serverside scripting language. It is not a client side scripting language (at least as far as you can publicly consider it). Php responds to http requests, not direct user events.
Hello good sir. :)
All times are Eastern Standard Time (GMT -5) | Current Time: 05:16 PM
<< Back