.oO(leegold2)
Newbie question I guess. Please show me how to use the htmlspecialchars
function in the form below, Thanks:
You only need it when you print out the previously entered informations
again, which is not the case with your form (no default value for the
input field).
Usually the code would look like this:
<input name="foo" value="<?php print htmlspecialchars($foo)?>">
where $foo contains the value that was entered in the text field before.
<form action="formtest1.php?c=1" method=POST>
<b>Find Results with:
These words: <input type="text" length=40 name="keywords">
input type="submit" value="Search">
</form>
You could also try this:
<form action="formtest1.php?c=1" method="post">
<label for="keywords">Find results with these words:</label>
<input name="keywords" id="keywords" length="40">
<input type="submit" value="Search">
</form>
Labels make forms more accessible, especially when used for checkboxes
and radio buttons.
Micha