topical media & game development

talk show tell print

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

  include (dirname(__FILE__) . '/../lib/gallery.php');
  gallery = new FlickrGallery();    
  if (!gallery->checkAuthenticatedUser())
    gallery->error("You do not have permission to replace 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>Replace Photo</title>
  <?php include ('header.php') ?>
  <?php include ('navigation.php') ?>
  id = _REQUEST['id'];
  if (!empty(id))
  <div class="photo-replace">
    <h1>Replace Photo</h1>
    <form action=<doReplace.php> method="post" enctype="multipart/form-data">
      <p class="upload-field">
        <input name="file" type="file" size="50" />
        <input type="hidden" name="id" value="<?php echo id ?>" />
        <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.