Forum Moderators: coopster
echo "<label for=\"srno\">Serial Number: </label><input type=\"text\" name=\"srno\" id=\"srno\" value=\"";
echo $row['srno'];
echo "\" />
This is supposed to create a text input with a value $row['srno'] which was pulled from a database.
Dijkgraaf beat me to that one.
---
One other point. If you don't want to parse variables in a line then just wrap the line with single quotes.
rather than:
echo "<label for=\"srno\">Serial Number: </label><input type=\"text\" name=\"srno\" id=\"srno\" value=\"";
use
echo '<label for="srno">Serial Number: </label><input type="text" name="srno" id="srno" value=""';
You would only need to use " instead of ' if you had something like this:
$abc='srno';
echo "<label for=\"$abc\">Serial Number: </label><input type=\"text\" name=\"$abc\" id=\"$abc\" value=\"";