Hi All,
I have a file that sets a variable and then I call a function from an include file to print a form to the browser. Yet when I do this I get an undefined variable error:
Warning: Undefined variable: distribName in common.php on line 30
Page1.php
if(!isset($distribname)){
$distribName ="";
include common.php
<input type=\"text\" name=\"DistribName\" size=\"30\" value = \"" & $distribName & "\">
There are about 13 variable like this and I can't seem to get this fixed. Any help will be appreciated.
TIA
Bastien
There are many ways to skin this cat,
but it still tastes like chicken
I have a file that sets a variable and then I call a function from an include file to print a form to the browser. Yet when I do this I get an undefined variable error:
Warning: Undefined variable: distribName in common.php on line 30
Page1.php
if(!isset($distribname)){
$distribName ="";
include common.php
<input type=\"text\" name=\"DistribName\" size=\"30\" value = \"" & $distribName & "\">
There are about 13 variable like this and I can't seem to get this fixed. Any help will be appreciated.
TIA
Bastien
There are many ways to skin this cat,
but it still tastes like chicken