#!/usr/bin/perl use CGI; $q=new CGI; $file='FILL_IN_YOUR_FILES_FULL_PATH/wp_POST.txt'; $playing=$q->param('p'); $history=$q->param('history'); $song1=$q->param('Title1'); $song2=$q->param('Title2'); open (FILE,">$file"); print FILE "
My Playlist at this moment

\n"; if ($playing eq '1') { print FILE "Currently Playing: $song1

\n"; if($history>1) {print FILE "Previously Played: