Problem with dynamic page loading

I am hoping someone can help with this. Page functioned properly about 6 months ago, but now not working.

Here is a portion of my code


<?php ini_set('arg_separator.output','&amp;');

$_POST['id'];
$_POST['view'];


date_default_timezone_set('America/New_York');

$today = date("F j, Y");
$current_time = time();
$Eastern_time = date('G:i A');
$year = date("Y");



if ($id == "" AND $view == "") {

	$showcase_image = "<img src=\\"http://www.thinkci.com/images/CTCC-01.png\\" alt=\\"\\" style=\\"margin: 37px 0 0 0;\\" />";

	$showcase_client = "Cherokee Town and Country Club";

	$showcase_links = "<a href=\\"http://www.thinkci.com/publications.php?id=CTCC&view=1\\" class=\\"active\\">1</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\\"http://www.thinkci.com/publications.php?id=CTCC&view=2\\" class=\\"passive\\">2</a>";

	$showcase_text = "Cherokee Town and Country Club enlisted our assistance to enhance its monthly members-only newsletter. Now a 20-page publication, Cherokee Life promotes member activities with the organization and visual appeal of a magazine, more effectively promoting upcoming events and reflecting the prestige of membership in the venerable private club. ";

	$page_view = "work_publications_view_01";

	$preview_image = "<img src=\\"http://www.thinkci.com/images/publications-preview.jpg\\" alt=\\"\\" />";

} elseif ($id == "CTCC" AND $view == "1") {

	$showcase_image = "<img src=\\"http://www.thinkci.com/images/CTCC-01.png\\" alt=\\"Cherokee Town and Country Club\\" style=\\"margin: 37px 0 0 0;\\" />";

	$showcase_client = "Cherokee Town and Country Club";

	$showcase_links = "<a href=\\"http://www.thinkci.com/publications.php?id=CTCC&view=1\\" class=\\"active\\">1</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\\"http://www.thinkci.com/publications.php?id=CTCC&view=2\\" class=\\"passive\\">2</a>";

	$showcase_text = "Cherokee Town and Country Club enlisted our assistance to enhance its monthly members-only newsletter. Now a 20-page publication, Cherokee Life promotes member activities with the organization and visual appeal of a magazine, more effectively promoting upcoming events and reflecting the prestige of membership in the venerable private club. ";

	$page_view = "work_publications_view_01";

	$preview_image = "<img src=\\"http://www.thinkci.com/images/publications-preview.jpg\\" alt=\\"\\" />";

} elseif ($id == "CTCC" AND $view == "2") {

	$showcase_image = "<img src=\\"http://www.thinkci.com/images/CTCC-02.png\\" alt=\\"Cherokee Town and Country Club\\" style=\\"margin: 37px 0 0 0;\\" />";

	$showcase_client = "Cherokee Town and Country Club";

	$showcase_links = "<a href=\\"http://www.thinkci.com/publications.php?id=CTCC&view=1\\" class=\\"passive\\">1</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\\"http://www.thinkci.com/publications.php?id=CTCC&view=2\\" class=\\"active\\">2</a>";

	$showcase_text = "Cherokee Town and Country Club enlisted our assistance to enhance its monthly members-only newsletter. Now a 20-page publication, Cherokee Life promotes member activities with the organization and visual appeal of a magazine, more effectively promoting upcoming events and reflecting the prestige of membership in the venerable private club. ";

	$page_view = "work_publications_view_01";

	$preview_image = "<img src=\\"http://www.thinkci.com/images/publications-preview.jpg\\" alt=\\"\\" />";

}

Here is the link to an active page:

http://www.thinkci.com/publications.php?id=CTCC&view=2

For some reason the page only shows the default setting and will not display any other view.

I probably did not explain this correctly, but is all I know.

Any help would be greatly appreciated.

$id and $view are never being assigned to…

I believe the following:

$_POST['id']; 
$_POST['view']; 

Should be

$id = $_POST['id']; 
$view = $_POST['view']; 

Thanks for the help. I am sure I needed to correct that issue, but it does not fix the problem

Sorry, I missed the fact you were using the URL, you would want to use $_GET instead of $_POST. Or if you want to support both the URL and form submission, use $_REQUEST.

$id = $_REQUEST['id']; 
$view = $_REQUEST['view'];  

Worked perfectly. Thanks for your assistance.