3 replies [Last post]
SPI
Offline
newbie
South Texas
Last seen: 15 years 43 weeks ago
South Texas
Joined: 2003-11-22
Posts: 9
Points: 0

Here is close to one that I want but it uses tables. Would like to do one in css but how do I limit it to 150 words?

<tr>
<td width="130" align="right"><p><font size="2">From : </font></td>
<td width="311" align="left"><p><font size="2"><input
type="text" name=sender> (Name of sender)</font></td>
</tr>
<tr>
<td width="130" align="right"><p><font size="2">E-Mail : </font></td>
<td width="311"><p><font size="2"><input type="text"
name="email">
(E-Mail address)</font></td>
</tr>
<tr>
<td width="130" align="right"><p><font size="2">Title
: </font></td>
<td width="311" align="left"><p><font size="2"><input
type="text" name=title> </font></td>
</tr>
<tr>
<td width="130" align="right" valign="top" rowspan="2" ><p><font size="2">Contents : </font></td>
<td width="311"><font size="2"><textarea name="Comment"
rows="5" cols="35"></textarea></font></td>
</tr>
<tr>
<td width="311" align="left"><p><font size="2"><input type="submit" value="Send">

Can I just set a word limit or do I need to do the math on the size of container? Thanks in advance

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 15 years 44 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

I Want to do a css form for email!!!

hey bigdawg!

Limiting the word number may be difficult. Much easier to limit to characters.

For example you could guess that each word may have an average length of 5 characters (including spaces), and therfore the limit should be 150*5= 550 characters.

You could then use a text box with a limit of a 550 as per http://www.weballey.net/forms/text.html

or use some javascript on the Textarea box http://javascript.internet.com/forms/limit-textarea.html

Regards
Day

The only way to learn is to do it yourself

seb
Offline
Enthusiast
Last seen: 12 years 33 weeks ago
Joined: 2003-09-20
Posts: 208
Points: 0

I Want to do a css form for email!!!

write some javascript to count the number of spaces on the onkeydown event.

SPI
Offline
newbie
South Texas
Last seen: 15 years 43 weeks ago
South Texas
Joined: 2003-11-22
Posts: 9
Points: 0

I Want to do a css form for email!!!

Thanks Day I was going to pm you to let you know that I am the Real Big Dawg. Just changed it here because my site is comming up so I thought maybe I can get SPI page to come this way. You are right about the word limit thing and I detest math so what they write they write doesn't mean I read 1000 words