View Full Version : how to find out if something is clicked.
dawizman
June 9th, 2002, 00:57
Hi, I'm trying to learn php, but I'm stuck, I've looked through all the tut's I've read and evn searched for every possible keyword that has to do with this but I can't find anything, so here it goes.
Using php, not perl or asp, how would I find out if something is clicked on? So I can go:
if (user clicks on something)
something happens
please, I really hope this is possible.
thanks in advance.
YUPAPA
June 9th, 2002, 01:43
if($clicked) {
# do the stuff you want here
};
dawizman
June 9th, 2002, 01:54
I know that, but how do I find out if the user has clicked on a button/ link.
Or, what code would I use to make a link etc.. that adjusts a variable.
YUPAPA
June 9th, 2002, 02:05
Then you should give me your query first so that I can give u the perl script...
dawizman
June 9th, 2002, 02:10
ok, lets say I have a variable named $main . well when someone clicks on the button that says main 2, the variable is changed to $main2. If you can make a small script like this in perl or php that I can add more to, then great!
YUPAPA
June 9th, 2002, 02:11
variable can't change. the value can.
Can you explain what you are trying to do with the script?
That will make things easier.. :)
dawizman
June 9th, 2002, 02:16
ok, I am trying to change the value of a variable, like when something is clicked it equals a new number. Then, in the centerr of the page I will have some code that goes: if $var=1 {include(main.txt)} elseif $var=2 {include(contact.txt)} etc...
YUPAPA
June 9th, 2002, 02:27
that?
http://www.freewebspace.net/forums/showthread.php?threadid=27898
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.