Nopaste link:[link]
Code:
Code: Select all
<html>
<head>
<title>Frets on Fire song.ini Generator</title>
</head>
<body>
<?php
/*-----------------------------------------------------------------------------------------
-------/
Frets on Fire song.ini generator ver 0.1 beta
Scripted by: coolcat50
/------------------------------------------------------------------------------------------
------*/
if (isset($_POST['submit'])) {
//Retrieve form data
$songname = $_POST['song'];
$artist = $_POST['artist'];
//$_POST['test'] is the Cassette Color. For an odd reason it is the only name that is transferring its value to $col
$col = $_POST['test'];
//Display text to copy into file inside of textarea
?>
Ini file:
<form>
<textarea rows="10" cols="30">
[song]
artist = <?php echo $artist."\n";?>
name = <?php echo $songname."\n";?>
cassettecolor = <?php echo $col."\n";?>
</textarea><br />
Copy and paste the text inside the box into a song.ini file.
</form>
<?php
} else {
?>
<form name="inigen" method="post">
Song: <input type="text" name="song" /><br />
Artist: <input type="text" name="artist" /><br />
Cassete Color (HTML format) <input type="text" name="test" value="#000000" /><br />
<input type="submit" value="Generate" name="submit" />
</form>
<?php
}
?>
</body>
</html>