Web Form - Cursor Won't Align Left in Textbox

T

Todd Shillam

I've got a Web form (using a PHP script) on an HTML page. The source looks like this:

<form action="feedback.php" method="post">
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form">
<tr><td>Your Name:</td><td><input type="text" name="name" size="28" /></td></tr>
<tr><td>Your Email Address:</td><td><input type="text" name="email" size="28" /></td></tr>
<tr>
<td colspan="2">
Other Comments, Feedback, Etc.<br />
<textarea rows="15" cols="45" name="comments">
</textarea>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" value="SUBMIT"/><br />
</td>
</tr>
</table>
</form>

The problem? In the Comments textbox, cursor position starts in about the center of the box--I'm
trying to figure out how to align (force) the cursor to the left. Thanks in advance for your help.


--
Best regards,

Todd Shillam
Information Technology Consultant
Shillam Technology
http://shillamtechnology.point2this.com
 
H

Hywel

I've got a Web form (using a PHP script) on an HTML page. The source looks like this:

<form action="feedback.php" method="post">
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form">
<tr><td>Your Name:</td><td><input type="text" name="name" size="28" /></td></tr>
<tr><td>Your Email Address:</td><td><input type="text" name="email" size="28" /></td></tr>
<tr>
<td colspan="2">
Other Comments, Feedback, Etc.<br />
<textarea rows="15" cols="45" name="comments">
</textarea>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" value="SUBMIT"/><br />
</td>
</tr>
</table>
</form>

The problem? In the Comments textbox, cursor position starts in about the center of the box--I'm
trying to figure out how to align (force) the cursor to the left. Thanks in advance for your help.
You have whitespace specified for the textarea. This code (yours) has 5
or 6 spaces defined for the field.
<textarea rows="15" cols="45" name="comments">
</textarea>

Change it to this
<textarea rows="15" cols="45" name="comments"></textarea>
 
T

Todd Shillam

Hywel said:
You have whitespace specified for the textarea. This code (yours)
has 5 or 6 spaces defined for the field.
<textarea rows="15" cols="45" name="comments">
</textarea>

Change it to this
<textarea rows="15" cols="45" name="comments"></textarea>

Hywel,

Thanks you sooooo much--that was driving me nutts this morning--I hate those annoying bugs.
Appreciate the help very much!

--
Best regards,

Todd Shillam
Information Technology Consultant
Shillam Technology
http://shillamtechnology.point2this.com
 
N

Neal

Hywel,

Thanks you sooooo much--that was driving me nutts this morning--I hate
those annoying bugs.
Appreciate the help very much!

Actually, not really a bug, it's intended behavior. Between those tags you
put the default text. That's what you essentially did.
 
H

Hywel

Actually, not really a bug, it's intended behavior. Between those tags you
put the default text. That's what you essentially did.

It was, however, a bug in the OP's mark-up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top