Hi,

i am having the following problem.

a $message string is parsed via url from a page to another one where I would like the $message to appear automatically in the relevan message box. all is well with imput text fields, but I can't work it out with textarea fields.
the following code not only displays my $message value in the textarea field but all sourvce code with it too.

<td>Message</td>
<td colspan="2"><textarea name="message" ROWS=5 COLS=20><?php echo "$message"; ?><textarea/>"

Why is that?

can you help?

Thanks,

vinny

    <td>Message</td> 
    <td colspan="2"><textarea name="message" rows="5" cols="20"><?php echo $message; ?></textarea>

      the following code not only displays my $message value in the textarea field but all sourvce code with it too

      Really??
      which source code is it? HTML or PHP ?
      let me see your HTML and PHP code

        it should be html, since his closing textarea tag is wrong.

          Hi,

          Does your message contain ' " ' (quotes) by any chance? Try addslashes(message) on the input, and a striplashes(message) on the output.

          Test it this way - go into the db or text file, where the message is saved, and take out any ' or " you see. Check the page w the error again...

          hth

            Write a Reply...