Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Community
Entertainment
[Picture] See what you get
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 15687" data-attributes="member: 1872"><p>I'm extremely bored...</p><p></p><p><a href="http://mark-eriksson.com/php/picture.php" target="_blank">http://mark-eriksson.com/php/picture.php</a></p><p></p><p>Source?...</p><p>[php]<?php</p><p>$month_arr = array( "January" => "I hate",</p><p> "February" => "I ran naked with",</p><p> "March" => "I need",</p><p> "April" => "I shot",</p><p> "May" => "I smoked weed with",</p><p> "June" => "I killed",</p><p> "July" => "I pissed on",</p><p> "August" => "I fucked",</p><p> "September" => "I got married with",</p><p> "October" => "I stabbed",</p><p> "November" => "I did a blowjob to",</p><p> "December" => "I took a crap on" );</p><p></p><p>$date_arr = array( "1" => "a monkey",</p><p> "2" => "a prostitute",</p><p> "3" => "a vacuum cleaner",</p><p> "4" => "your mom",</p><p> "5" => "Barney the Dinosaur",</p><p> "6" => "a dog",</p><p> "7" => "Santa Claus",</p><p> "8" => "a travesty",</p><p> "9" => "a porn star",</p><p> "10" => "a condom",</p><p> "11" => "a bowl of cereal",</p><p> "12" => "a Jew",</p><p> "13" => "a lesbian",</p><p> "14" => "a horse",</p><p> "15" => "an old man",</p><p> "16" => "a drug dealer",</p><p> "17" => "a clown",</p><p> "18" => "your grandmother",</p><p> "19" => "a dildo",</p><p> "20" => "Michael Jackson",</p><p> "21" => "a drunk Mexican",</p><p> "22" => "an egg",</p><p> "23" => "a piece of shit",</p><p> "24" => "a robot",</p><p> "25" => "a Nazi",</p><p> "26" => "a puppet",</p><p> "27" => "George Bush",</p><p> "28" => "a black guy",</p><p> "29" => "Madonna",</p><p> "30" => "a cookie jar",</p><p> "31" => "a fat guy" );</p><p></p><p>$colour_arr = array( "White" => "because that's what I am",</p><p> "Black" => "because I'm sexy",</p><p> "Pink" => "because my friends told me to do it",</p><p> "Red" => "because I was horny",</p><p> "Blue" => "because I hate my life",</p><p> "Yellow" => "because I'm gay",</p><p> "Gray" => "because I stink",</p><p> "Green" => "because I smoked crack",</p><p> "Orange" => "because I'm ugly",</p><p> "Brown" => "because I'm racist",</p><p> "Squares" => "because I got an orgasm",</p><p> "No t-shirt" => "because I have perfect abs",</p><p> "Other" => "because I'm single" );</p><p>if( $_POST['go'] )</p><p>{</p><p> $month = strip_tags( $_POST['month'] );</p><p> $date = strip_tags( $_POST['date'] );</p><p> $colour = strip_tags( $_POST['colour'] );</p><p> $error = '';</p><p> if( !$month )</p><p> {</p><p> $error .= '&raquo; You must select a month.<br>';</p><p> }</p><p> if( !$date )</p><p> {</p><p> $error .= '&raquo; You must select a date.<br>';</p><p> }</p><p> if( !$colour )</p><p> {</p><p> $error .= '&raquo; You must select a colour.<br>';</p><p> }</p><p> if( !$error )</p><p> {</p><p> echo $month . ' ' . $date . ' ' . $colour;</p><p> }</p><p> else</p><p> {</p><p> echo 'You must enter all fields<br><a href="picture.php">Back</a>';</p><p> }</p><p>}</p><p>?></p><p><form method="post"></p><p> <select name="month" id="month"></p><p> <?php</p><p> foreach( $month_arr as $a => $b )</p><p> {</p><p> echo '<option value="' . $b . '">' . $a . '</option>';</p><p> }</p><p> ?></p><p> </select></p><p> </p><p> <select name="date" id="date"></p><p> <?php</p><p> foreach( $date_arr as $a => $b )</p><p> {</p><p> echo '<option value="' . $b . '">' . $a . '</option>';</p><p> }</p><p> ?></p><p> </select></p><p> </p><p> <select name="colour" id="colour"></p><p> <?php</p><p> foreach( $colour_arr as $a => $b )</p><p> {</p><p> echo '<option value="' . $b . '">' . $a . '</option>';</p><p> }</p><p> ?></p><p> </select></p><p> </p><p> <input type="submit" name="go" value="&raquo;"></p><p></form>[/php]</p></blockquote><p></p>
[QUOTE="Markshall, post: 15687, member: 1872"] I'm extremely bored... [url]http://mark-eriksson.com/php/picture.php[/url] Source?... [php]<?php $month_arr = array( "January" => "I hate", "February" => "I ran naked with", "March" => "I need", "April" => "I shot", "May" => "I smoked weed with", "June" => "I killed", "July" => "I pissed on", "August" => "I fucked", "September" => "I got married with", "October" => "I stabbed", "November" => "I did a blowjob to", "December" => "I took a crap on" ); $date_arr = array( "1" => "a monkey", "2" => "a prostitute", "3" => "a vacuum cleaner", "4" => "your mom", "5" => "Barney the Dinosaur", "6" => "a dog", "7" => "Santa Claus", "8" => "a travesty", "9" => "a porn star", "10" => "a condom", "11" => "a bowl of cereal", "12" => "a Jew", "13" => "a lesbian", "14" => "a horse", "15" => "an old man", "16" => "a drug dealer", "17" => "a clown", "18" => "your grandmother", "19" => "a dildo", "20" => "Michael Jackson", "21" => "a drunk Mexican", "22" => "an egg", "23" => "a piece of shit", "24" => "a robot", "25" => "a Nazi", "26" => "a puppet", "27" => "George Bush", "28" => "a black guy", "29" => "Madonna", "30" => "a cookie jar", "31" => "a fat guy" ); $colour_arr = array( "White" => "because that's what I am", "Black" => "because I'm sexy", "Pink" => "because my friends told me to do it", "Red" => "because I was horny", "Blue" => "because I hate my life", "Yellow" => "because I'm gay", "Gray" => "because I stink", "Green" => "because I smoked crack", "Orange" => "because I'm ugly", "Brown" => "because I'm racist", "Squares" => "because I got an orgasm", "No t-shirt" => "because I have perfect abs", "Other" => "because I'm single" ); if( $_POST['go'] ) { $month = strip_tags( $_POST['month'] ); $date = strip_tags( $_POST['date'] ); $colour = strip_tags( $_POST['colour'] ); $error = ''; if( !$month ) { $error .= '» You must select a month.<br>'; } if( !$date ) { $error .= '» You must select a date.<br>'; } if( !$colour ) { $error .= '» You must select a colour.<br>'; } if( !$error ) { echo $month . ' ' . $date . ' ' . $colour; } else { echo 'You must enter all fields<br><a href="picture.php">Back</a>'; } } ?> <form method="post"> <select name="month" id="month"> <?php foreach( $month_arr as $a => $b ) { echo '<option value="' . $b . '">' . $a . '</option>'; } ?> </select> <select name="date" id="date"> <?php foreach( $date_arr as $a => $b ) { echo '<option value="' . $b . '">' . $a . '</option>'; } ?> </select> <select name="colour" id="colour"> <?php foreach( $colour_arr as $a => $b ) { echo '<option value="' . $b . '">' . $a . '</option>'; } ?> </select> <input type="submit" name="go" value="»"> </form>[/php] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Community
Entertainment
[Picture] See what you get
Top