Use htmlentities or rawurlencode to add text to a form text
Posted: Fri Jul 23, 2004 2:33 pm
Use htmlentities or rawurlencode to add text to a form text field.
Both they seam to work.
<edit>
It must be htmlentities.
Sorry for posting
</edit>
Code: Select all
<input type="text" name="input" value="<?php echo htmlentities($default_text); ?>">
<input type="text" name="input" value="<?php echo rawurlencode ($default_text); ?>"><edit>
It must be htmlentities.
Sorry for posting
</edit>