ajloun
02-09-2010, 06:15 AM
Hello
It must Be very Simple . but i do not know how to do it ..
i use this ..
<?php
session_start();
$dec = $_SESSION['description'];
$com = $_SESSION['comment'];
echo "$dec";
echo "<br>";
echo "$com";
?>
Now in my site i have the debug mode enabled and always shown Undefined variable error.. because i did not define $dec , $com ..
this variable defined when the browser returns after post data ..
So myquastion How to Prevent the error Undefined variable from shown up without turning the debug Mode Off..
It must Be very Simple . but i do not know how to do it ..
i use this ..
<?php
session_start();
$dec = $_SESSION['description'];
$com = $_SESSION['comment'];
echo "$dec";
echo "<br>";
echo "$com";
?>
Now in my site i have the debug mode enabled and always shown Undefined variable error.. because i did not define $dec , $com ..
this variable defined when the browser returns after post data ..
So myquastion How to Prevent the error Undefined variable from shown up without turning the debug Mode Off..