it took me a while, but I think i'm getting used to this, it's really each once you use all the functions that vB has provided.
what do you think of my form code for adding a story to the database?
PHP Code:
// add story
echo "<p><b>vBstory $ver - Add Story</b></p>";
doformheader("vbstory_admin","add");
maketableheader("Add Story - All fields are required.","",1,2);
makeinputcode("Story Title", "title", "");
echo '<tr class="'.getrowbg().'"><td valign=top>';
echo "Genre";
echo "</td><td valign=top>";
// get genre list
echo "<select name='genreid'>";
foreach ($genres_global[title] as $genres_key => $genres_value) {
echo "<option value='$genres_key'>$genres_value</option>";
}
echo "</select>";
echo "</td></tr>";
makeinputcode("Character Name", "name", "");
maketextareacode("Background","info",$description,6,50);
makeinputcode("Display <small>1 for yes. 0 for no.</small>", "display", "1");
makehiddencode("what", "story");
makehiddencode("post", "1");
doformfooter("Add Story");