•
•
•
•
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 401,694 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 3,706 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: 1684 | Replies: 5 | Solved
![]() |
| |
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
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
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,888
Reputation:
Rep Power: 32
Solved Threads: 110
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?
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
[html]article Body</b>
<br><b>Allowable Tags:</b><br><b>, <strong>, <i>, <em>, <u>, <br>, <pre>, <blockquote>, <xmp>, <ol>, <ul>, <li><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]
<br><b>Allowable Tags:</b><br><b>, <strong>, <i>, <em>, <u>, <br>, <pre>, <blockquote>, <xmp>, <ol>, <ul>, <li><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
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,888
Reputation:
Rep Power: 32
Solved Threads: 110
Your problem *I THINK* appears to be with the
Also, I'm not sure if this was a mistake copying the code or if it's an actual bug, but you have
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' Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,888
Reputation:
Rep Power: 32
Solved Threads: 110
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!
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!
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- how to format the form textarea? (PHP)
- textarea Control in ASP.NET (ASP.NET)
- JBuilder Gui textArea Help! (Java)
Other Threads in the HTML and CSS Forum
- Previous Thread: how do I get the previous value
- Next Thread: get rid of /



Hybrid Mode