web/tagging/savetag.php
author Gautier Thibault <gthibault@universcine.com>
Wed, 14 Apr 2010 20:53:47 +0200
changeset 57 c05892376a6c
parent 2 65157edaee3e
permissions -rw-r--r--
path to videos
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     1
<?php
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     2
$in=$_POST['timein'];
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     3
$out=$_POST['timeout'];
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     4
$tag=$_POST['usertag'];
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     5
$user=$_POST['username'];
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     6
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     7
$line = array($in,$out,$tag,$user);
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     8
$fp = fopen("tags.csv", "a");
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
     9
fputcsv($fp,$line);
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
    10
fclose($fp);
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
    11
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
    12
header("Location: index.html");
65157edaee3e Tagging proof of concept
Boris de Laage <bdelaage@universcine.com>
parents:
diff changeset
    13
?>