 |
 |
Thanks for Telling Us Your Story. We will get back in touch with you or your parents if we decided to feature your story on our site.
In the meantime you can check out some other things on our site here:
  
Or you can submit another story and video right now. Just do not forget to include all your information agian. ';
$data=file_get_contents($_FILES['myfile']['tmp_name']);
$name=$_FILES['myfile']['name'];
$sql="INSERT INTO upload_test (title,email,parentname,parentemail,city,state,text,videourl,file_data,file_name) VALUES
('".$_POST['my_name']."','".$_POST['email']."','".$_POST['parentname']."','".$_POST['parentemail']."','".$_POST['city']."','".$_POST['state']."','".$_POST['text']."','".$_POST['videourl']."','".addslashes($data)."','".$name."')";
mysql_query($sql) or die('Error: '.mysql_error());
}
if(isset($_GET['id'])){
$sql='SELECT * FROM upload_test where id=\''.$_GET['id'].'\'';
$query=mysql_query($sql) or die('Error: '.mysql_error());
$row=mysql_fetch_assoc($query); //print_r($row);
header('Content-type: video/quicktime');
header('Content-length: '.strlen($row['file_data']));
header('Content-Disposition: attachment; filename='.$row['file_name']);
echo $row['file_data'];
}else{
?>
|
 |
 |