(Article is below...)

Dada Poetry Generator

Use this dada poetry generator to create your own free dada poem easily by simply entering in text.

Dada Poem
A poem which denies all sense and reason. The word "dada" originates in French meaning 'hobbyhorse', a word selected at random from the dictionary.

To create your Dada poem, type or paste a paragraph into the textarea then click 'Create Poem'.

Hint: Insert a paragraph from an online article or newspaper for best results.

Poem:
"; $words = htmlentities($_POST['words']); $words = stripslashes($words); $array = explode(" ", $words); if (count($array) > 7) { $rand_keys1 = array_rand($array, 5); $rand_keys2 = array_rand($array, 7); $rand_keys3 = array_rand($array, 5); $rand_keys4 = array_rand($array, 7); $rand_keys5 = array_rand($array, 5); $rand_keys6 = array_rand($array, 7); for ($i=0; $i<5; $i++) { echo $array[$rand_keys1[$i]] . " "; if ($i == 4) { echo "
"; } } for ($i=0; $i<7; $i++) { echo $array[$rand_keys2[$i]] . " "; if ($i == 6) { echo "
"; } } for ($i=0; $i<5; $i++) { echo $array[$rand_keys3[$i]] . " "; if ($i == 4) { echo "
"; } } for ($i=0; $i<7; $i++) { echo $array[$rand_keys4[$i]] . " "; if ($i == 6) { echo "
"; } } for ($i=0; $i<5; $i++) { echo $array[$rand_keys5[$i]] . " "; if ($i == 4) { echo "
"; } } for ($i=0; $i<7; $i++) { echo $array[$rand_keys6[$i]] . " "; if ($i == 6) { echo "

"; } } } else { echo "Error: Please insert atleast eight words.

Thank you

"; } } ?>