PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
either i've been at this too long or my server has gone batso or zend has to eplain something....namely: why the HELL have i just spent 30 minutes trying to get $uid to be set to $_GET['uid'] playing with trying to pass it when it's set like mem and there's definitely something in the string....... here, pardon the writing in the code, i'm just a tad bit <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> at this rght now..
/* passed & default variables */
$uid=$_GET['uid']; $mem=$_GET['mem']; $fn=''; $beid=NULL; $gmto='-5'; $utds='m/d/Y H:i:s'; $el='';
$disp=" <td class="abcen">$mem has no journal entries</td>"; $sa=$vis; $uid=NULL; $errs=array();
if(isset($_GET['fn'])){ $fn=$_GET['fn']; }else{ $fn=$_POST['fn']; } # set the function
if(isset($_GET['entry'])){ $beid=$_GET['entry']; }else{ $beid=$_POST['entry']; } # set the blog entry id
if(isset($_COOKIE['gmto'])){ $gmto=$_COOKIE['gmto']; } # set member's utc offset (in hours)
if(isset($_COOKIE['utds'])){ $utds=$_COOKIE['utds']; } # set member's choice of time display style
echo "<h1> the uid is: $uid</h1><h2><span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> get is <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>: {$_GET['uid']}</h2>";
which gets
the uid is:
<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> get is <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>: 1
OT: 7 statements on one line is a debugging nightmare waiting to happen. Good coding is not about cramming as much as possible into as smaller space as possible .