SOURCE FOR: submitStudentYes.php

<?php
    
include ('header.php');
?>

<!-- metadata that we want crawl-able or different -->
        <link rel='stylesheet' type='text/css' href='styles/print.css' media='print' />
        <link rel='stylesheet' type='text/css' href='styles/fire.css' media='screen' />
        <meta name='keywords' content='storytelling, story, folktale, fairy tale, database' />
           <meta name="copyright" content="January 2008, S Lunden" />
           <meta name="description" content="A database to collect and share information on stories and folktales" />
           <title>Storytime: A Database for Storytellers, Submit Stories</title>
           <script type="text/javascript" src="test2.js" ></script>
       </head>
 
<body>

<!-- OUTER container for background art  -->
    <div id="outer">
    
<!-- CONTENT is for entire content box -->    
        <div id="content">
                        
<!-- TEXT is for actual content -->
            <div id="text">
                <span class="title">Submit Stories...</span> 
                <form action="submitOut.php" method="post">
                <div id="one">
                <br />
                    <span class="topics">Bibliographic Information (best version for telling)</span>
                        <div id="oneleft">
                            <p>Title of Story</p>
                            <p><input type="text" name="title1" /></p>
                            <p>Author of Story</p>
                            <p><input type="text" name="author1" /></p>
                            <p>Title of Book/Collection</p>
                            <p><input type="text" name="book1" /></p>
                        </div>
                        <div id="oneright">
                            <br />
                            <p>Full Bibliography</p>
                            <p><textarea name="bibliog1" rows="3" cols="50"></textarea></p>    
                            <br />
                            <br />
                            <br />
                            <br />
                        </div>
                </div>
                <div id="two">
                    <span class="topics">Story Origin</span>
                            <p>Geographic Region:
                                <select name="origin">
                                    <option value="none">Select One...</option>
                                    <option value="Africa">Africa</option>
                                    <option value="Asia">Asia</option>
                                    <option value="Europe">Europe</option>
                                    <option value="LAm">Latin America</option>
                                    <option value="MidEast">Middle East</option>
                                    <option value="NatAm">Native America</option>
                                    <option value="NoAm">North America</option>
                                    <option value="Oceania">Oceania</option>
                                </select></p>
                            <p>Country: <input type="text" name="country" /></p>
                </div>
                        
                        <div id="three">
                        <br />
                            <span class="topics">Emotions</span>
                            <p>What emotions do your characters feel?<br />
                            (be selective of the ones you want to focus on)</p>
                        <div id="threeleft">
                            <p>Character</p>
                            <p><input type="text" name="chara1" /></p>
                            <p>+ Add more (up to 5 total)</p>
                            <!--<p><input type="text" name="chara2" /></p>
                            <p><input type="text" name="chara3" /></p>
                            <p><input type="text" name="chara4" /></p>
                            <p><input type="text" name="chara5" /></p>-->
                            <br />
                        </div>    
                        <div id="threeright">
                            <p>Emotions</p>
                            <p><input type="text" name="emoC1" /></p>
                            <!--<p><input type="text" name="emoC2" /></p>
                            <p><input type="text" name="emoC3" /></p>
                            <p><input type="text" name="emoC4" /></p>
                            <p><input type="text" name="emoC5" /></p>-->
                        </div>
                        <br />
                        <div id="threebottom">    
                            <p>What emotions do you want your audience to feel?</p>
                            <p><input type="text" name="emoA1" />
                            <input type="text" name="emoA2" />
                            <input type="text" name="emoA3" /></p>
                        </div>
                        </div>
                    
                        <div id="four">
                        <br />
                            <span class="topics">Performance Characteristics</span>
                            <p>Running Time (minutes):
                                <select name="time">
                                    <option value="none">Select One...</option>
                                    <option value="2to5">2-5</option>
                                    <option value="6to10">6-10</option>
                                    <option value="11to15">11-15</option>
                                    <option value="16to20">16-20</option>
                                    <option value="20plus">20+</option>
                                </select></p>
                            <p>Scenes (no more than six)</p>
                            <p><textarea name="scenes" rows="2" cols="70"></textarea></p>
                            <p>Synopsis</p>
                            <p><textarea name="synopsis" rows="2" cols="70"></textarea></p>
                            <p>Rhymes/Special phrases/"Flavor"</p> 
                            <p><textarea name="flavor" rows="2" cols="70"></textarea></p>
                            <p>Personal Performance Risks I plan to take with this story
                            <br />
                            (i.e. how are you stretching as a storyteller to perform this story)  
                            <br />
                            *this field will not be viewable on the Web, only Dr Sturm can access it</p>
                            <p><textarea name="risks" rows="2" cols="70"></textarea></p>
                        </div>
                    
                        <div id="five">
                        <br />
                            <span class="topics">Audience</span>
                            <p>What grade range is this story BEST suited for?
                            <select name="ageGroup">
                            <option value="none">Select One...</option>
                            <option value="PreK">Pre-K</option>
                            <option value="1to3">1st-3rd</option>
                            <option value="4to6">4th-6th</option>
                            <option value="middleSchool">Middle School</option>
                            <option value="highSchool">High School</option>
                            <option value="adult">Adult</option>
                            </select></p>
                            <p>What developmental characteristics does the story address?<br /> (why is the story appropriate for the audience)</p>
                            <div id="fiveleft">
                                <p>Developmental Characteristic</p>
                                <p><textarea name="devChar1" rows="1" cols="30"></textarea></p>
                                <p><textarea name="devChar2" rows="1" cols="30"></textarea></p>
                                <p><textarea name="devChar3" rows="1" cols="30"></textarea></p>
                                <p>+ Add More (up to 5 total)</p>
                                <!--<p><textarea name="devChar4" rows="1" cols="30"></textarea></p>
                                <p><textarea name="devChar5" rows="1" cols="30"></textarea></p>-->
                                <br />
                            </div>
                            <div id="fiveright">
                                <p>How does the story address this</p>
                                <p><textarea name="howRel1" rows="1" cols="30"></textarea></p>
                                <p><textarea name="howRel2" rows="1" cols="30"></textarea></p>
                                <p><textarea name="howRel3" rows="1" cols="30"></textarea></p>
                                <!--<p><textarea name="howRel4" rows="1" cols="30"></textarea></p>
                                <p><textarea name="howRel5" rows="1" cols="30"></textarea></p>-->
                            </div>
                        </div>
                        
                        <div id="six">
                        <br />
                            <span class="topics">Bibliographic information on other versions/variants</span><br />
                            <div id="sixa">
                                <div id="sixaleft">
                                    <p>Title of Story</p>
                                    <p><input type="text" name="title2" /></p>
                                    <p>Author of Story</p>
                                    <p><input type="text" name="author2" /></p>
                                    <p>Title of Book/Collection</p>
                                    <p><input type="text" name="book2" /></p>
                                    <br />
                                </div>
                                <div id="sixaright">
                                    <br />
                                    <p>Full Bibliography</p>
                                    <p><textarea name="bibliog2" rows="3" cols="50"></textarea></p>
                                </div>
                                <div id="sixarule">
                                    <hr />
                                </div>
                            </div>
                            <div id="sixb">
                                <div id="sixbleft">
                                    <p>Title of Story</p>
                                    <p><input type="text" name="title3" /></p>
                                    <p>Author of Story</p>
                                    <p><input type="text" name="author3" /></p>
                                    <p>Title of Book/Collection</p>
                                    <p><input type="text" name="book3" /></p>
                                </div>
                                <div id="sixbright">
                                    <br />
                                    <p>Full Bibliography</p>
                                    <p><textarea name="bibliog3" rows="3" cols="50"></textarea></p>
                                </div>
                                <div id="sixbrule">
                                    <hr />
                                </div>
                            </div>
                            <div id="sixadd">
                                <p>+Add More (up to 4 total)</p>
                                <br />
                            </div>
                            <!--<div id="sixc">
                                <div id="sixcleft">
                                    <p>Title of Story</p>
                                    <p><input type="text" name="title4" /></p>
                                    <p>Author of Story</p><br />
                                    <p><input type="text" name="author4" /></p>
                                    <p>Title of Book/Collection</p>
                                    <p><input type="text" name="book4" /></p>
                                    <br />
                                </div>
                                <div id="sixcright">
                                    <p>Full Bibliography</p>
                                    <p><textarea name="bibliog4" rows="3" cols="50"></textarea></p>
                                </div>
                            </div>
                            <div id="sixd">
                                <div id="sixdleft">
                                    <p>Title of Story</p>
                                    <p><input type="text" name="title5" /></p>
                                    <p>Author of Story</p>
                                    <p><input type="text" name="author5" /></p>
                                    <p>Title of Book/Collection</p>
                                    <p><input type="text" name="book5" /></p>
                                    <br />
                                </div>
                                <div id="sixdright">
                                    <p>Full Bibliography</p>
                                    <p><textarea name="bibliog5" rows="3" cols="50"></textarea></p>
                                </div>
                            </div>-->
                    
                    <p>Brief comparison of all versions/variants in terms of language, rhythm, "tellability," "flavor," content, etc.  Stress the differences in style rather than those of content.
                        <textarea name="compare" rows="3" cols="70"></textarea></p>
                    </div>
                    
                    <div id="seven">
                    <br />
                    <span class="topics">Video</span>
                    <p>While this story is being presented in class, a video file is created.<br />  Do you want your video to be posted online with your cue card information?<br />
                        <input type="radio" name="vidPermiss" value="Yes" />Yes
                        <input type="radio" name="vidPermiss" value="No" checked />No</p>    
                    </div>
                    
                    <div id="eight">
                    <br />
                    <p><input type="reset" value="Clear All" />
                    <input type="submit" value="Next" /></p>
                    <br />
                    </div>
                    
                </form>
            </div>
            
<!-- MAINMENU is for the menu buttons  -->
    <?php
    
include ('menu.php');
    
?>
            
<!-- close CONTENT -->
        </div>
        
<!-- FOOTER -->
    <?php
    
include ('footer.php');
    
?>
    
<!-- close OUTER -->
    </div>
    
</body>
</html>


SOURCE FOR: submitOut.php

<?php
    
include ('header.php');
?>

<!-- metadata that we want crawl-able or different -->
        <link rel='stylesheet' type='text/css' href='styles/print.css' media='print' />
        <link rel='stylesheet' type='text/css' href='styles/fire.css' media='screen' />
        <meta name='keywords' content='storytelling, story, folktale, fairy tale, database' />
           <meta name="copyright" content="January 2008, S Lunden" />
           <meta name="description" content="A database to collect and share information on stories and folktales" />
           <title>Storytime: A Database for Storytellers, Submit Stories</title>
           <script type="text/javascript" src="test2.js" ></script>
       </head>
 
<body>

<!-- OUTER container for background art  -->
    <div id="outer">
    
<!-- CONTENT is for entire content box -->    
        <div id="content">
                        
<!-- TEXT is for actual content -->
            <div id="text">
                <span class="title">Submit Stories...</span> 
            <?php
    
                $allowed 
= array( 'title1' 'author1''book1' 'bibliog1' 'origin' 'country' 'chara1' 'emoC1' 'emoA1' 'emoA2' 'emoA3' 'time' 'scenes' 'synopsis' 'flavor' 'risks' 'ageGroup' 'devChar1' 'devChar2' 'devChar3' 'howRel1' 'howRel2' 'howRel3' 'title2' 'author2' 'book2' 'bibliog2' 'title3' 'author3' 'book3' 'bibliog3' 'compare' 'vidPermiss' );
                
$form array_keys$_POST );
                if ( 
$form === $allowed )
                {
                    if (empty(
$_POST['title1']))
                    {
                        echo 
"<p>Please fill in Title</p>";
                    }
                    else 
                    {
                        
$clean_title1 htmlentities($_POST['title1']);
                        echo 
"<p>Title is $clean_title1</p>";
                    }
                    
                    if (empty(
$_POST['author1']))
                    {
                        echo 
"<p>Please fill in Author</p>";
                    }
                    else 
                    {
                        
$clean_author1 htmlentities($_POST['author1']);
                        echo 
"<p>Author is $clean_author1</p>";
                    }
                    
                    if (!empty(
$_POST['book1']))
                    {
                        
$clean_book1 htmlentities($_POST['book1']);
                        echo 
"<p>Book is $clean_book1</p>";
                    }
                    
                    if (empty(
$_POST['bibliog1']))
                    {
                        echo 
"<p>Please fill in Full Bibliography</p>";
                    }
                    else 
                    {
                        
$clean_bibliog1 htmlentities($_POST['bibliog1']);
                        echo 
"<p>Bibliography is $clean_bibliog1</p>";
                    }
                    
                    if (
$_POST['origin']=='none')
                    {
                        echo 
"<p>Please Select Geographic Origin</p>";
                    }
                    else 
                    {
                        
$origin_options = array ('Africa''Asia''Europe''LAm''MidEast''NatAm''NoAm''Oceania');
                        if (
in_array($_POST['origin'], $origin_options))
                        {
                        
$clean_origin = ($_POST['origin']);
                        echo 
"<p>Origin is $clean_origin</p>";
                        }
                    }
                    
                    if (!empty(
$_POST['country']))
                    {
                        
$clean_country htmlentities($_POST['country']);
                        echo 
"<p>Country is $clean_country</p>";
                    }
                    
                    if (empty(
$_POST['chara1']))
                    {
                        echo 
"<p>Please fill in Character</p>";
                    }
                    else 
                    {
                        
$clean_chara1 htmlentities($_POST['chara1']);
                        echo 
"<p>Character is $clean_chara1</p>";
                    }
                    
                    if (empty(
$_POST['emoC1']))
                    {
                        echo 
"<p>Please fill in Character Emotion</p>";
                    }
                    else 
                    {
                        
$clean_emoC1 htmlentities($_POST['emoC1']);
                        echo 
"<p>Emotion is $clean_emoC1</p>";
                    }
                    
                    if (empty(
$_POST['emoA1']))
                    {
                        echo 
"<p>Please fill in Audience Emotion 1</p>";
                    }
                    else 
                    {
                        
$clean_emoA1 htmlentities($_POST['emoA1']);
                        echo 
"<p>Audience Emotion is $clean_emoA1</p>";
                    }
                    
                    if (empty(
$_POST['emoA2']))
                    {
                        echo 
"<p>Please fill in Audience Emotion 2</p>";
                    }
                    else 
                    {
                        
$clean_emoA2 htmlentities($_POST['emoA2']);
                        echo 
"<p>Audience Emotion is $clean_emoA2</p>";
                    }
                    
                    if (empty(
$_POST['emoA3']))
                    {
                        echo 
"<p>Please fill in Audience Emotion 3</p>";
                    }
                    else 
                    {
                        
$clean_emoA3 htmlentities($_POST['emoA3']);
                        echo 
"<p>Audience Emotion is $clean_emoA3</p>";
                    }
                    
                    if (
$_POST['time']=='none')
                    {
                        echo 
"<p>Please Select Running Time</p>";
                    }
                    else 
                    {
                        
$time_options = array ('2to5''6to10''11to15''16to20''20plus');
                        if (
in_array($_POST['time'], $time_options))
                        {
                        
$clean_time = ($_POST['time']);
                        echo 
"<p>Running Time is $clean_time</p>";
                        }
                    }
                    
                    if (empty(
$_POST['scenes']))
                    {
                        echo 
"<p>Please fill in Scenes</p>";
                    }
                    else 
                    {
                        
$clean_scenes htmlentities($_POST['scenes']);
                        echo 
"<p>Scenes are $clean_scenes</p>";
                    }
                    
                    if (empty(
$_POST['synopsis']))
                    {
                        echo 
"<p>Please fill in Synopsis</p>";
                    }
                    else 
                    {
                        
$clean_synopsis htmlentities($_POST['synopsis']);
                        echo 
"<p>Synopsis is $clean_synopsis</p>";
                    }
                    
                    if (!empty(
$_POST['flavor']))
                    {
                        
$clean_flavor htmlentities($_POST['flavor']);
                        echo 
"<p>Flavor is $clean_flavor</p>";
                    }
                    
                    if (empty(
$_POST['risks']))
                    {
                        echo 
"<p>Please fill in Risks</p>";
                    }
                    else 
                    {
                        
$clean_risks htmlentities($_POST['risks']);
                        echo 
"<p>Risks are $clean_risks</p>";
                    }
                    
                    if (
$_POST['ageGroup']=='none')
                    {
                        echo 
"<p>Please Select Age Group</p>";
                    }
                    else 
                    {
                        
$ageGroup_options = array ('PreK''1to3''4to6''middleSchool''highSchool' 'adult');
                        if (
in_array($_POST['ageGroup'], $ageGroup_options))
                        {
                        
$clean_ageGroup = ($_POST['ageGroup']);
                        echo 
"<p>Age Group is $clean_ageGroup</p>";
                        }
                    }
                    
                    if (empty(
$_POST['devChar1']))
                    {
                        echo 
"<p>Please fill in Developmental Characteristic 1</p>";
                    }
                    else 
                    {
                        
$clean_devChar1 htmlentities($_POST['devChar1']);
                        echo 
"<p>D Char is $clean_devChar1</p>";
                    }
                    
                    if (empty(
$_POST['howRel1']))
                    {
                        echo 
"<p>Please fill in How Relevant 1</p>";
                    }
                    else 
                    {
                        
$clean_howRel1 htmlentities($_POST['howRel1']);
                        echo 
"<p>How Rel is $clean_howRel1</p>";
                    }
                    
                    if (empty(
$_POST['devChar2']))
                    {
                        echo 
"<p>Please fill in Developmental Characteristic 2</p>";
                    }
                    else 
                    {
                        
$clean_devChar2 htmlentities($_POST['devChar2']);
                        echo 
"<p>D Char is $clean_devChar2</p>";
                    }
                    
                    if (empty(
$_POST['howRel2']))
                    {
                        echo 
"<p>Please fill in How Relevant 2</p>";
                    }
                    else 
                    {
                        
$clean_howRel2 htmlentities($_POST['howRel2']);
                        echo 
"<p>How Rel is $clean_howRel2</p>";
                    }
                    
                    if (empty(
$_POST['devChar3']))
                    {
                        echo 
"<p>Please fill in Developmental Characteristic 3</p>";
                    }
                    else 
                    {
                        
$clean_devChar3 htmlentities($_POST['devChar3']);
                        echo 
"<p>D Char is $clean_devChar3</p>";
                    }
                    
                    if (empty(
$_POST['howRel3']))
                    {
                        echo 
"<p>Please fill in How Relevant 3</p>";
                    }
                    else 
                    {
                        
$clean_howRel3 htmlentities($_POST['howRel3']);
                        echo 
"<p>How Rel is $clean_howRel3</p>";
                    }
                    
                    if (empty(
$_POST['title2']))
                    {
                        echo 
"<p>Please fill in Title 2</p>";
                    }
                    else 
                    {
                        
$clean_title2 htmlentities($_POST['title2']);
                        echo 
"<p>Title2 is $clean_title2</p>";
                    }
                    
                    if (empty(
$_POST['author2']))
                    {
                        echo 
"<p>Please fill in Author 2</p>";
                    }
                    else 
                    {
                        
$clean_author2 htmlentities($_POST['author2']);
                        echo 
"<p>Author2 is $clean_author2</p>";
                    }
                    
                    if (!empty(
$_POST['book2']))
                    {
                        
$clean_book2 htmlentities($_POST['book2']);
                        echo 
"<p>Book 2 is $clean_book2</p>";
                    }
                    
                    if (empty(
$_POST['bibliog2']))
                    {
                        echo 
"<p>Please fill in Full Bibliography 2</p>";
                    }
                    else 
                    {
                        
$clean_bibliog2 htmlentities($_POST['bibliog2']);
                        echo 
"<p>Bibliography 2 is $clean_bibliog2</p>";
                    }
                    
                    if (empty(
$_POST['title3']))
                    {
                        echo 
"<p>Please fill in Title 3</p>";
                    }
                    else 
                    {
                        
$clean_title3 htmlentities($_POST['title3']);
                        echo 
"<p>Title3 is $clean_title3</p>";
                    }
                    
                    if (empty(
$_POST['author3']))
                    {
                        echo 
"<p>Please fill in Author 3</p>";
                    }
                    else 
                    {
                        
$clean_author3 htmlentities($_POST['author3']);
                        echo 
"<p>Author3 is $clean_author3</p>";
                    }
                    
                    if (!empty(
$_POST['book3']))
                    {
                        
$clean_book3 htmlentities($_POST['book3']);
                        echo 
"<p>Book3 is $clean_book3</p>";
                    }
                    
                    if (empty(
$_POST['bibliog3']))
                    {
                        echo 
"<p>Please fill in Full Bibliography 3</p>";
                    }
                    else 
                    {
                        
$clean_bibliog3 htmlentities($_POST['bibliog3']);
                        echo 
"<p>Bibliog 3 is $clean_bibliog3</p>";
                    }
                    
                    if (empty(
$_POST['compare']))
                    {
                        echo 
"<p>Please fill in Comparison</p>";
                    }
                    else 
                    {
                        
$clean_compare htmlentities($_POST['compare']);
                        echo 
"<p>Comparison is $clean_compare</p>";
                    }
                    
                    if (!empty(
$_POST['vidPermiss']))
                    {
                        
                        
$vidPermiss_options = array ('Yes''No');
                        if (
in_array($_POST['vidPermiss'], $vidPermiss_options))
                        {
                        
$clean_vidPermiss = ($_POST['vidPermiss']);
                        echo 
"<p>Permission is $clean_vidPermiss</p>";
                        }
                    }
                    
                    
                    
                    
                    
                }

            
?>
</div>
            
<!-- MAINMENU is for the menu buttons  -->
    <?php
    
include ('menu.php');
    
?>
            
<!-- close CONTENT -->
        </div>
        
<!-- FOOTER -->
    <?php
    
include ('footer.php');
    
?>
    
<!-- close OUTER -->
    </div>
    
</body>
</html>