View Single Post
  #8 (permalink)  
Old 2006-01-11, 03:09 PM
silverfh silverfh is offline
Junior Member
 
Join Date: Jan 2006
Posts: 1
silverfh
Default

Hi Guys,

the post topic is nice and exactelly what I wanted.. but a lil diff way.. lets say I have the php code in my DB.. saved somewhere.. or lets say just in a var

Code:
$var = '<input name="email" type="text" id="email" value="<? echo $email?>">';
now here is the prob.. I cant just make it work proper.. coz if i simply echo this data then the inatial value of the form field will be the actual php code that is
Code:
<? echo $email?>
but what i want is to activate make $email work as a actual PHP variable and it should display the variable value instead of php code..

I hope I am clear here..

but just simpley typing this code
Code:
<input name="email" type="text" id="email" value="<? echo $email?>">
I can get the required result as the actual variable name in the field. but using
Code:
$var = '<input name="email" type="text" id="email" value="<? echo $email?>">';
echo $var;
the result gose wrong.

anyone have any solution plz ?
Reply With Quote