Re: [PHP] Text area with an echo command

2003-10-18 Thread John Nichel
Will wrote: Eugene, Thank You much :) I really appreciate it!!! Will PS: I am curious on other guys and gals would do this code. The way php allows for including of files, I tend to try and keep my html and php seperate...but that's just personal. The method Eugene suggested is also fine

Re: [PHP] Text area with an echo command

2003-10-18 Thread John Nichel
Will wrote: John, I have that script: $sql = "UPDATE $table_name5 SET care_id = '$_POST[care_id]', date = '$_POST[date]', common = '$_POST[common]', notes = '$_POST[notes]' WHERE notes_id ='$_POST[notes_id]'"; $result = @mysql_query($sql,$conn) or die(mysql_error()); header("

Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
Eugene, Thank You much :) I really appreciate it!!! Will PS: I am curious on other guys and gals would do this code. Eugene Lee wrote: On Sat, Oct 18, 2003 at 01:27:05AM -0400, Will wrote: : : Thanks for the code but it comes up a parse error. I know I am new, but : this is driving me cr

Re: [PHP] Text area with an echo command

2003-10-17 Thread Eugene Lee
On Sat, Oct 18, 2003 at 01:27:05AM -0400, Will wrote: : : Thanks for the code but it comes up a parse error. I know I am new, but : this is driving me crazy!!! :( : Here is the code that I am working with: : : $display_block = " : : : : : : : ||Cage No.: $care_id | Common Name: : $common

Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
Thanks for the code but it comes up a parse error. I know I am new, but this is driving me crazy!!! :( Here is the code that I am working with: $display_block = " ||Cage No.: $care_id | Common Name: $common|| Date: echo "Notes:\n " . htmlentities($notes) . "\n"; "; I know it does not

Re: [PHP] Text area with an echo command

2003-10-17 Thread Eugene Lee
On Sat, Oct 18, 2003 at 12:24:44AM -0400, Will wrote: : : John W. Holmes wrote: : : >Will wrote: : > : >>I have a question on echoing text from a database into a form. The : >>database is populated but it does not show up in the modify script : >>page. Can someone help me?? : >> : >>Here is the

Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
John, I have that script: $sql = "UPDATE $table_name5 SET care_id = '$_POST[care_id]', date = '$_POST[date]', common = '$_POST[common]', notes = '$_POST[notes]' WHERE notes_id ='$_POST[notes_id]'"; $result = @mysql_query($sql,$conn) or die(mysql_error()); header("Location:

Re: [PHP] Text area with an echo command

2003-10-17 Thread John Nichel
Will wrote: That worked great!! But how do I get the info from the modify script back into the database?? With that code: $value It does not populated the database with the new text that was modified. Is there another way to do it?? I am learning PHP on my own so bare with me. Will You'll

Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
That worked great!! But how do I get the info from the modify script back into the database?? With that code: $value It does not populated the database with the new text that was modified. Is there another way to do it?? I am learning PHP on my own so bare with me. Will John W. Holmes wro

Re: [PHP] Text area with an echo command

2003-10-17 Thread John W. Holmes
Will wrote: I have a question on echoing text from a database into a form. The database is populated but it does not show up in the modify script page. Can someone help me?? Here is the code that I am using: Notes: There is no "value" attribute for a textarea... $value -- ---John Holmes...

[PHP] Text area with an echo command

2003-10-17 Thread Will
Hello everyone, I have a question on echoing text from a database into a form. The database is populated but it does not show up in the modify script page. Can someone help me?? Here is the code that I am using: Notes: The above is a display_block in the PHP code itself. Thanks in advance,

Re: [PHP] text area question

2003-08-23 Thread Marek Kilimajer
MAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] text area question Your textarea should be: and not Angelo Zanetti wrote: Hi this is slightly off topic but i hope i will be forgived. I have a textarea and whenever my page loads and I click in it the cursor nevers starts at the very be

RE: [PHP] text area question

2003-08-22 Thread Keith Higgs
wever, many electrons were terribly inconvenienced. > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: Friday, August 22, 2003 07:08 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] text area question >

Re: [PHP] text area question

2003-08-22 Thread Marek Kilimajer
Your textarea should be: and not Angelo Zanetti wrote: Hi this is slightly off topic but i hope i will be forgived. I have a textarea and whenever my page loads and I click in it the cursor nevers starts at the very beginning and I have to push the backspace buttton until i get to the start

[PHP] text area question

2003-08-22 Thread Angelo Zanetti
Hi this is slightly off topic but i hope i will be forgived. I have a textarea and whenever my page loads and I click in it the cursor nevers starts at the very beginning and I have to push the backspace buttton until i get to the start. is there a property or something to fix this?? thanx in a

Re: [PHP] text area with quotes

2002-07-31 Thread Justin French
check out strip_slashes() or stripslashes() [can never remember which one!!] in the manual. Justin French on 01/08/02 5:50 AM, Nathan Kline ([EMAIL PROTECTED]) wrote: > this seems so obvious yet it is giving me problems. > > I have a text area in a form that is passed to a php page to be > w

Re: [PHP] text area with quotes

2002-07-31 Thread Kevin Stone
ROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 1:50 PM Subject: [PHP] text area with quotes > this seems so obvious yet it is giving me problems. > > I have a text area in a form that is passed to a php page to be > written to a database. first though It displa

Re: [PHP] text area with quotes

2002-07-31 Thread Jason Reid
If it adds the slashes, before u echo it back out, try stripslashes($var) first Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "Nathan Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 1:50

Re: [PHP] text area with quotes

2002-07-31 Thread 1LT John W. Holmes
www.php.net/stripslashes ---John Holmes... - Original Message - From: "Nathan Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 3:50 PM Subject: [PHP] text area with quotes > this seems so obvious yet it is giving me problems

[PHP] text area with quotes

2002-07-31 Thread Nathan Kline
this seems so obvious yet it is giving me problems. I have a text area in a form that is passed to a php page to be written to a database. first though It displays the contents of the form in a preview page. then if everything is good the user click the button and it write to the DB. I pass th

[PHP] Text area ...

2001-08-06 Thread ani
try replacing the char num.10, line break or [enter] key with when doing the query this helps keeping the original text format SELECT replace(text,char(10),'') as text, FROM whatever Ani Lopez http://www.lamundial.net visit our site, download and spread our music -- PHP General Mailing List

Re: [PHP] Text area ...

2001-08-06 Thread Jon Yaggie
mpile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: "Coconut Ming" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 3:24 AM Subject: [PHP] Text

[PHP] Text area ...

2001-08-06 Thread Coconut Ming
hi.. Did you feel it is strange alignment when you output the same thing again in PHP... I mean the line break... For example I enter the following text and the order of text as below I AM A GUY so... I store it when I output it again.. It is display as I AM A GUY the line brea