Re: Not getting the right output in phpmyadmin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your problem here is with your understanding in the textarea tag. All  
the cols and rows stuff is doing is presentational. It is the same as  
saying width and height. It doesn't actually format the data.

If you need your input to be cut short, or formatted a special way,  
you'll need to do that when you output it back to the user.
--
Joe

On Apr 20, 2010, at 12:58 PM, Gab Teo wrote:

>
> Can someone help please?
>
> I use phpmyadmin and set the message field in the database with  
> respect to id being that the id is in auto_increament:
>
> message (text)(latin1_swedish_ci)
>
> but, when when text is inputed into the database via the form it  
> appeared as a straight line  in the database and again when view  
> from the browser is also appeard starightline, this causes the  
> whole page to expand, I expected the message input to break after  
> it reach cols=40 and continue in a new line until it reach the  
> rows=10 as defined in the html form.
>
> Can someone help please?
>
> Gab
>
>
>
>
> <form action="mail.php" method="POST">
> <b>Email</b><br>
> <input type="text" name="email" size=40>
> <p><b>Subject</b><br>
> <input type="text" name="subject" size=40>
> <p><b>Message</b><br>
> <textarea cols=40 rows=10 name="message"></textarea>
> <p><input type="submit" value=" Send ">
> </form>
>
>
>
> <php?
> $insert=mysql_query("INSERT INTO form (email,subjetc,message)VALUES 
> ('$email','$subject','$message'");
> ?>


[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux