<?php
// x == 1 :  dream creation from the Make a Dream page; just get the title
// x ==  :  new dream creation; just get the text here

$User_ID = $_COOKIE["User_ID"];

if (strlen($User_ID)>0) { ?>

<html><head><title>Dream Loom</title>

<link type="text/css" rel="stylesheet" href="style.css"> 
</head>

<body>
<h3>Contribute a Dream</h3>
<?php	
if ($_GET['x']=="1") {
?>
<span class="">Please choose a title for this dream</span>
<?php	
} elseif ($_GET['x']=="") {
?>
<span class="">The Dream Loom works best when dreams are entered in a specific way.  <BR />For tips on this format please <a href="dream-contrib-tips.php" target="_blank">click here</a>.  Remember to put a period at the end of a fragment that completes a sentence.</span>
<?php	
}
?>
<FORM ACTION="dream-contrib.php" METHOD="GET">

<input type="text" name="title" value="Untitled" size="20" maxlength="100"><BR />

<?php if ($_GET['x']=="") { ?>
<textarea name="fragments" rows="40" cols="40">

</textarea><br />
<?php } ?>

<input type="submit" value="Contribute">

</FORM>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1203790-1";
urchinTracker();
</script></body></html>


<?php 
// email graphic for help linked to apology page for hidden email.  
//'lick for frustration' linked to db - rest assured your click has had incremental impact upon a register in our database.

} else { 
	Header("Location: index.php");
}
?>