User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 375,174 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,228 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1659 | Replies: 5 | Solved
Reply
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

<textarea>

  #1  
Nov 24th, 2005
i have a problem in <textarea>. i dont know how to ask the question. but can give the example what i need

for eg if i want to add
"
The secret of pay per click lies in choosing the right keywords for your potential customers to use when they are searching for your product.


However, choosing the right keyword is the important and difficult point to be considered in this process"

above words in form , and click submit button.
all the infomation got o databse
but when i try to retrive i get the information as
"
The secret of pay per click lies in choosing the right keywords for your potential customers to use when they are searching for your product. However, choosing the right keyword is the important and difficult point to be considered in this process"

i wont see the space . between product and however . it is mixed.what i have to do to get as it is i entered. i hope you understand my problem.i am using php for the site i am making
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 108
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: <textarea>

  #2  
Nov 24th, 2005
A textarea should be multiline by default. Can you copy / paste the php code where you throw what's in the textarea into the database?
Reply With Quote  
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

Re: <textarea>

  #3  
Nov 25th, 2005
[html]article Body</b>
<br><b>Allowable Tags:</b><br>&lt;b&gt;, &lt;strong&gt;, &lt;i&gt;, &lt;em&gt;, &lt;u&gt;, &lt;br&gt;, &lt;pre&gt;, &lt;blockquote&gt;, &lt;xmp&gt;, &lt;ol&gt;, &lt;ul&gt;, &lt;li&gt;<br><textarea rows="25" name="body" value="<?echo $body;?>" cols="65" wrap="physical" ><?echo $body?></textarea>[/html]
this is the html form


this is the php part where i through into the database[php]<?
$body=$_POST['body;];
$insert = "INSERT INTO tempsubart ( catageory,title,
summary,
body,
sig,
regdate,
keywords ,name ,email
)
VALUES ('$cat','$title','$summary','$body','$bio','$regdate','$key','$name','$email'
)";
$a=mysql_query($insert) ;?>[/php]
Last edited by cscgal : Nov 25th, 2005 at 1:27 am. Reason: bbcode Added
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 108
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: <textarea>

  #4  
Nov 25th, 2005
Your problem *I THINK* appears to be with the wrap="physical" part of your HTML code. Have you tried ditching it and seeing what happens? Also, your textarea doesn't need a value="" attribute since the value is placed between the <textarea> </textarea> tags.

Also, I'm not sure if this was a mistake copying the code or if it's an actual bug, but you have $body=$_POST['body;];where you have 'body; instead of 'body'
Reply With Quote  
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

Re: <textarea>

  #5  
Nov 25th, 2005
thanks i tried using striptags started working.thanks for ur help
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 108
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: <textarea>

  #6  
Nov 25th, 2005
You mean http://us3.php.net/manual/en/function.strip-tags.php ??

I'm confused. Why was anyone typing html tags into the message to begin with? Unless I'm missing something ... Glad you got it working though!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 12:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC