Location: PHPKode > scripts > Textbased Moviedatabase > textbased-moviedatabase/add.php
<html><head><title>movie added</title></head>


<style type="text/css">
<!--
body {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
pre {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
table {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #FFFFFF}
-->
</style>
<body bgcolor="#000033" text="#FFFFFF">
<?php
$fp = fopen ("movies.txt", "a+");
fwrite ($fp, $addname);
fwrite ($fp, "|");
fwrite ($fp, $addsprache);
fwrite ($fp, "|");
fwrite ($fp, $addcds);
fwrite ($fp, "|");
fwrite ($fp, $addsource);
fwrite ($fp, "|");
fwrite ($fp, $addsize);
fwrite ($fp, "|");
fwrite ($fp, $addres);
fwrite ($fp, "|");
fwrite ($fp, $addgenre);
fwrite ($fp, "|");
fwrite ($fp, $addjahr);
fwrite ($fp, "\n");
fclose ($fp);

print "<pre>... movie added to database<br><br>";
print "<a href='movies.php'>click here</a> to view the database<br>";
print "<a href='add_form.php'>click here</a> to add another movie</pre>";
?></body></html>
Return current item: Textbased Moviedatabase