topical media & game development

talk show tell print

mashup-flickr-08-Complete-gallery-upload.php / php

  include (dirname(__FILE__) . '/../lib/gallery.php');
  gallery = new FlickrGallery();    
  if (!gallery->checkAuthenticatedUser())
    gallery->error("You do not have permission to upload photos");
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  <html xmlns="">
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/gallery.css" rel="stylesheet" type="text/css" />
    <title>Upload Photo</title>
  <?php include ('header.php') ?>
  <?php include ('navigation.php') ?>
  <div class="photo-upload">
    <h1>Upload a Photo</h1>
    <form action=<doUpload.php> method="post" enctype="multipart/form-data">
      <input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
      <p class="upload-field">
        <input name="file" type="file" size="50" />
      <p class="photo-title-upload">
        <input name="title" type="text" id="title" size="50" />    
      <p class="photo-description-upload">
        <textarea name="description" cols="50" rows="6" wrap="VIRTUAL" 
      <p class="photo-privacy-upload">
        <input name="tags" type="text" id="tags" size="50" />
      <p class="photo-tags-upload">
        <input type="radio" name="privacy" value="public" checked="checked"/>
        <input type="radio" name="privacy" value="private" />Private<br/>
        <input type="radio" name="privacy" value="friends" />Friends Only<br/>
        <input type="radio" name="privacy" value="family" />Family Only<br/>
        <input type="radio" name="privacy" value="friendsfamily" />Friends and 
        <input type="submit" name="Submit" value="Upload Photo" />
        <input type="reset" name="Reset" value="Reset" />

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.