![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Apr 2005
Posts: 96
Rep Power: 4
![]() |
Php problem
I want to create a webpage that has 9 different pictures and reacts differently according to which picture you click. This is suposed to be like a very very simple game.
The way I see it is when a user clicks an image it sends him to a second page that does afew calaculations according to which picture they clicked and then redirects them to the original page. The problem is I dont know how to make the second page able to tell which image sent the user there. I was thinking of making nine seperate calculation pages but im quite sure theres a simpler way. I dont know javascript but I think it might be able to handle this, if so could someone please show me? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
[php]
<a href="2ndpage.php?srcImage=1"> <img src="1.jpg"> </a> [/php] ...
__________________
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
http://www.zend.com/zend/art/art-sweat4.php#Heading6
Information about passing information to your script using urls. 9 image links to the same php script using different info for the variable. Woot. Simple n easy
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi freelance scripts - http://ryanguthrie.com/index.html |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Apr 2005
Posts: 96
Rep Power: 4
![]() |
thanks, that hit the spot.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|