Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi!
I hope somebody can help me. I am a newbie and I think that this is probably a very easy to answer question. I am trying to modify one of PHP JY scripts adding the following form:
<?PHP
{
echo "</br>";
echo "<form ACTION=comment.php METHOD=POST>";
echo "Post a comment:";
echo "<input type=text name=comment>";
echo "<input type=submit>";
echo "</form>";
}
?>
My question is: How can I set a specific length for the text field in that form?
The length of the text field is too big and it spoils the layout.
Thanks for your help!
Tieck!
Trouble with a form text field lenght
Moderator: mkoch227
To change the length,
Change to
In this , the size="18" gives the field a length af 18 visible characters.
Greetings,
Henrie
Change
Code: Select all
echo "<input type=text name=comment>";
Code: Select all
echo "<input type=text name=comment size='18'>";
Greetings,
Henrie