Page 1 of 1

Looking at it too long

Posted: Tue Jun 14, 2005 2:50 am
by dcoffin
Does anyone see a problem with this code? Especially the later part?

Code: Select all

<?php
if (is_numeric($_GET&#1111;'record'])) {
   $current = $_GET&#1111;'record'];
} elseif (isset($_POST&#1111;'broadcast_em_id]))	{ 
   $current = $_GET&#1111;'broadcast_em_id'];
}
?>

Posted: Tue Jun 14, 2005 2:56 am
by CoderGoblin

Code: Select all

<?php
if (is_numeric($_GET['record'])) {
   $current = $_GET['record'];
} elseif (isset($_GET['broadcast_em_id']))	{ 
   $current = $_GET['broadcast_em_id'];
}
?>
You mixed up POST and GET and also missed a closing single quote on the elseif line.