Voimis
Oct 1st 2007, 11:13 am
<?php
$artist = $_POST['artist'];
$year = $_POST['year'];
$name = $_POST['name'];
$row = $artist . $year . $name;
$listing = fopen("recordlist.txt","a");
fwrite($listing, $row . "\n");
fclose($listing);
header('Location: recordlist.txt');
?>
It doesn´t work and I can´t find the problem. So the code is for posting my cd:s to that recordlist.txt file. Help please!
$artist = $_POST['artist'];
$year = $_POST['year'];
$name = $_POST['name'];
$row = $artist . $year . $name;
$listing = fopen("recordlist.txt","a");
fwrite($listing, $row . "\n");
fclose($listing);
header('Location: recordlist.txt');
?>
It doesn´t work and I can´t find the problem. So the code is for posting my cd:s to that recordlist.txt file. Help please!