Top

Petals Around the Rose!


PHP Code
+ 0 likes
Please Register to submit score.
Average Score  4.0
Scores Submitted  1
Date Added  May 14, 2005
Last Updated  Nov 30, 1999
  Bookmark and Share

Introduction

This is the ever popular Petals Around the Rose game converted to PHP!! it's fairly long, but it only took about 30 minutes to code... I used numbers rather than pictures because I can't post pictures!

Grab the Code

Comments

  (4)  RSS
Hawkee
Comments: 486
 
PHP Snippet:  Petals Around the Rose!
Posted on May 15, 2005 1:58 pm
You need to collect your _GET vars first. Don\'t assume we have our servers configured to automatically set variables like $roll and $sub. Do this: $roll = $_GET[roll]; $sub = $_GET[sub]; etc.
log2
Comments: 52
 
PHP Snippet:  Petals Around the Rose!
Posted on May 15, 2005 2:22 pm
(sorry accidentally pushed enter) \'t need the $_GET[] statement because the variables are already declared
enexif
Comments: 21
 
PHP Snippet:  Petals Around the Rose!
Posted on May 18, 2005 4:25 pm
What I think Hawkee is saying that soem servers don\'t automatically configure the ?roll=[input] into a variable... so you must set the variable to $roll=$_GET[\'roll\'] to allow better compatability
Hawkee
Comments: 486
 
PHP Snippet:  Petals Around the Rose!
Posted on May 25, 2005 6:55 am
exactly enexif, the script won\'t work when the server has register_globals turned off.

Please Register or Login to start posting comments.
Bottom