Skip to content

Instantly share code, notes, and snippets.

@kodi
Created July 28, 2010 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kodi/494962 to your computer and use it in GitHub Desktop.
Save kodi/494962 to your computer and use it in GitHub Desktop.
<?php
echo '
<form class="cmxform" id="form1" name="form1" method="post" action="photoUploadedDatabase">
<ol>
<li>
<img class="uploadedImage" src="' . SMALL_IMAGE . $imageName . '" alt="Uploaded photo" />
</li>
<li>
<label for="pictureTitle">Picture title</label>
<input type="text" name="pictureTitle" id="pictureTitle" value="" />
</li>
<li>
<label for="pictureCaption">Picture caption</label>
<input type="text" name="pictureCaption" id="pictureCaption" value="" />
</li>
<li>
<label for="pictureKeywords">Keywords</label>
<input type="text" name="pictureKeywords" id="pictureKeywords" value="" />
</li>
<li>
<label for="albumName">Album name</label>
<select id="albumName" name="albumName">' . "\n";
foreach ($albumName as $album) {
echo '<option value="' . $album['albumID'] . '">' . $album['albumTitle'] . '</option>' . "\n";
}
echo '
</select>
</li>
<li>
<input type="hidden" name="pictureName" id="pictureName" size="10" value="'.$imageName.'" />
</li>
</ol>
<p><input type="submit" name="submit" id="submit" value="Submit" />
</p>
</form>';
?>
//
//ovako treba
//
<form class="cmxform" id="form1" name="form1" method="post" action="photoUploadedDatabase">
<ol>
<li>
<img class="uploadedImage" src="' . SMALL_IMAGE . $imageName . '" alt="Uploaded photo" />
</li>
<li>
<label for="pictureTitle">Picture title</label>
<input type="text" name="pictureTitle" id="pictureTitle" value="" />
</li>
<li>
<label for="pictureCaption">Picture caption</label>
<input type="text" name="pictureCaption" id="pictureCaption" value="" />
</li>
<li>
<label for="pictureKeywords">Keywords</label>
<input type="text" name="pictureKeywords" id="pictureKeywords" value="" />
</li>
<li>
<label for="albumName">Album name</label>
<select id="albumName" name="albumName">
<?php
foreach ($albumName as $album) {
echo '<option value="' . $album['albumID'] . '">' . $album['albumTitle'] . '</option>' . "\n";
}//end php block ?>
</select>
</li>
<li>
<input type="hidden" name="pictureName" id="pictureName" size="10" value="'.$imageName.'" />
</li>
</ol>
<p><input type="submit" name="submit" id="submit" value="Submit" />
</p>
</form>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment