<?php

	include "library.php";

	$cxn = start_code();

	$cxn_common = db_common_login();


	
			/* get variables */

	$id = val( $_SESSION, "id" );

	$remembered_id = val( $_GET, "rememberedid" );

		/* if the user is not logged in them direct them to the login page then back to here */

	if ($id == "")
	{
		$_SESSION['nextpage'] = url_encode( "add_to_remembered.php", "rememberedid", $remembered_id );

		jump_to_page( "login.php" );	/* must happen before print output */

		exit();
	}

	page_header( "Add to remembered", $cxn, $cxn_common );


		/* check the parameters */

	crash_if_missing( $remembered_id, "remembered id not set in add_to_remembered", $cxn );


		/* prompt the user */

	echo black( "<br>Are you sure you want to add this member to your remembered list?<br><br>" );

		
		/* yes  */

	echo sp(2);

//	show_button_h( "yes", "add_to_remembered_go.php", "add", "yes", "rememberedid", $remembered_id );

	show_green_button( "Yes", 70, "add_to_remembered_go.php", "add", "yes", "rememberedid", $remembered_id );

		/* no */

	echo sp(2);

//	show_button_h( "no", "add_to_remembered_go.php", "add", "no", "rememberedid", $remembered_id );
	
	show_green_button( "No", 70, "add_to_remembered_go.php", "add", "no", "rememberedid", $remembered_id );	

?>