views:

44

answers:

2

I want to get value from php variable to review it in textbox

what I have to write in "value":

<input type="text" name="name3" size="25" maxlength="50" value=""> name:
A: 
<input type="text" name="name3" size="25" maxlength="50" value="<?php echo $variable; ?>">
Crayon Violent
+1  A: 
<input type="text" 
       name="name3" 
       size="25" 
       maxlength="50" 
       value="<?php echo htmlspecialchars($variable); ?>">
David Dorward