Issue adding stuff into a database
Moderator: General Moderators
-
Terencentanio
- Forum Commoner
- Posts: 27
- Joined: Mon Dec 06, 2004 10:32 am
- Location: England
Issue adding stuff into a database
Yo.
I have a form with some text boxes. If people put more than one thing in it, seperated by spaces or other symbols, when it's added to the database or displayed on a page, it enters newlines.
Anyone know how I can stop this?
MT,
me
I have a form with some text boxes. If people put more than one thing in it, seperated by spaces or other symbols, when it's added to the database or displayed on a page, it enters newlines.
Anyone know how I can stop this?
MT,
me
-
Terencentanio
- Forum Commoner
- Posts: 27
- Joined: Mon Dec 06, 2004 10:32 am
- Location: England
Code: Select all
<tr>
<td valign="top"><font face="arial" size="1" color="000000"><B>Support:</B></td>
<td valign="top"><input type="text" name="support" maxlength="50" value="PHP, Perl"></td>
</tr>-
Terencentanio
- Forum Commoner
- Posts: 27
- Joined: Mon Dec 06, 2004 10:32 am
- Location: England
-
Terencentanio
- Forum Commoner
- Posts: 27
- Joined: Mon Dec 06, 2004 10:32 am
- Location: England
That one is - http://root32.com/users/profile.php should be viewable by anyone. Look at #33
-
Terencentanio
- Forum Commoner
- Posts: 27
- Joined: Mon Dec 06, 2004 10:32 am
- Location: England
-
Terencentanio
- Forum Commoner
- Posts: 27
- Joined: Mon Dec 06, 2004 10:32 am
- Location: England
- smpdawg
- Forum Contributor
- Posts: 292
- Joined: Thu Jan 27, 2005 3:10 pm
- Location: Houston, TX
- Contact:
In the HTML that you generate you have the cell width set to 10. That's 10 pixels - how would you expect it to render properly? It's going to word wrap at the first whitespace that it encounters which is why you see multiple lines but those of us that use FireFox see it the way you intended. 
Change each ocurrence of 10 to something more reasonable and you should be OK.
Change each ocurrence of 10 to something more reasonable and you should be OK.
Code: Select all
<TR>
<TD width=10 bgColor=#ffffff><FONT face=verdana color=#000000
size=2>42 </FONT></TD>
<TD width=10 bgColor=#ffffff><FONT face=verdana size=2><A
href="http://root32.com/users/profile.php?u=42">eclipse</A>
</FONT></TD></TR>