One more thing... if you store your 'waldo co-ordinates' data in a text file, make sure it is in a directory outside of the webtree...
- Kev > -----Original Message----- > From: Kevin Porter [SMTP:[EMAIL PROTECTED]] > Sent: 25 September 2002 16:52 > To: '@ Edwin'; Marek Kilimajer > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] where's waldo > > Or, a simple way... > > When you show your image, make sure it is a form submit button of > 'type=image'. On the PHP side you know the X and Y co-ordinates of waldo. > When the user clicks on the image, the place they clicked on the image is > passed along the URL in 'x' and 'y' variables. On the PHP side, check if > their co-ordinates are close enough, if so give them the next (harder) > image. If they're not near enough, make sure they get served a 'sorry - > try > again' message followed by the same image. > > That should work, yeah? I used to do spot the ball competitions this way > at > least... > > HTH, > > - Kev > > > -----Original Message----- > > From: @ Edwin [SMTP:[EMAIL PROTECTED]] > > Sent: 25 September 2002 16:40 > > To: Marek Kilimajer > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] where's waldo > > > > True. Perhaps. > > > > But, I think, you can actually do something like that WITH php. Say > > PHP+Flash or PHP+Javascript... > > > > Of course, if you're able to do something like this just by using > > PHP+Javascript (and HTML only), most probably, you can just take a peek > at > > the code and find out where "waldo" is... ;) > > > > - E > > > > On Thursday, September 26, 2002 12:12 AM > > Marek Kilimajer wrote: > > > > > This is for java, javascript, or flash, not much to do for php. > > > > > > Kenneth Love wrote: > > > > > > >hi all. > > > > > > > >i'm interested in creating a php game that generates a page of random > > (ish) > > > >images, one of which is waldo (or the like). when the player clicks > on > > > >waldo, they're taken to the next, slightly harder level. > > > > > > > >anyone think that sounds fun? > > > >any pointers, tips, advice, criticisms? > > > > > > > >-- > > > >->-> http://kennethlove.onewingedangel.com <-<- > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > www.mimesweeper.com > ********************************************************************** > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php