Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 29th, 2005, 10:42 PM   #1
crazykid48x
Programmer
 
crazykid48x's Avatar
 
Join Date: Apr 2005
Posts: 96
Rep Power: 4 crazykid48x is on a distinguished road
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?
crazykid48x is offline   Reply With Quote
Old Oct 29th, 2005, 10:55 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
[php]
<a href="2ndpage.php?srcImage=1">
<img src="1.jpg">
</a>
[/php]

...
__________________

tempest is offline   Reply With Quote
Old Oct 29th, 2005, 10:59 PM   #3
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 217
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
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
Mocker is offline   Reply With Quote
Old Oct 30th, 2005, 12:06 AM   #4
crazykid48x
Programmer
 
crazykid48x's Avatar
 
Join Date: Apr 2005
Posts: 96
Rep Power: 4 crazykid48x is on a distinguished road
thanks, that hit the spot.
crazykid48x is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:09 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC