</fieldset> <fieldset class="buttons"> <button type="reset">RESET</button> <button type="submit" name="stage" value="2">submit</button> </fieldset> </form> </div>'; break; case "2": // $stream = new Stream( "00000", $_POST[ "name" ], $_POST[ "description" ], $_POST[ "startYear" ], $_POST[ "stopYear" ] ); $stream->setName($_POST["name"]); $stream->setDescription($_POST["description"]); $stream->setStartYear($_POST["startYear"]); $stream->setStopYear($_POST["stopYear"]); if ($stream->validate()) { if ($stream->update()) { $pageBody .= ' <div class="dialog"> <p>stream successfully saved</p> </div>'; } } break; } } else { // You need to specify a target } break; case "list":