Textarea problem in form: values not recognised

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martien van Wanrooij

    Textarea problem in form: values not recognised

    In a php form that should be send by email, I have been puzzling the whole
    night long about the fact that the content of a textarea was not passed
    through the email message. Curiously enought it worked when I omitted the
    standard text in the text area, so
    <textarea name = "reaction">Plea se give your reaction here</textarea>
    the value $reaction in my mailform script remained empty.
    <textarea name = "reaction"> </textarea>
    however, worked properly.
    I detected this by coincidence because I had written almost a similar script
    for another site but without default values in the text area. I couldn't
    find any explanation for this behaviour on the web.
    Any ideas?

    Thanks on beforehand, Martien van Wanrooij


  • Johan Holst Nielsen

    #2
    Re: Textarea problem in form: values not recognised

    Martien van Wanrooij wrote:
    [color=blue]
    > In a php form that should be send by email, I have been puzzling the whole
    > night long about the fact that the content of a textarea was not passed
    > through the email message. Curiously enought it worked when I omitted the
    > standard text in the text area, so
    > <textarea name = "reaction">Plea se give your reaction here</textarea>
    > the value $reaction in my mailform script remained empty.
    > <textarea name = "reaction"> </textarea>
    > however, worked properly.
    > I detected this by coincidence because I had written almost a similar script
    > for another site but without default values in the text area. I couldn't
    > find any explanation for this behaviour on the web.
    > Any ideas?[/color]

    Can you please try to send us an link to the whole source? Maybe with an
    working example with an phpinfo(); on the page that you submit to?

    Regards,
    Johan

    Comment

    • Nico

      #3
      Re: Textarea problem in form: values not recognised

      Is it useful to mention the following:

      $reaction = $_POST["reaction"];

      ..Nico

      "Martien van Wanrooij" <info@martienva nwanrooij.nl> schreef in bericht
      news:3raxb.134$ 7U1.1272@amstwi st00...[color=blue]
      > In a php form that should be send by email, I have been puzzling the whole
      > night long about the fact that the content of a textarea was not passed
      > through the email message. Curiously enought it worked when I omitted the
      > standard text in the text area, so
      > <textarea name = "reaction">Plea se give your reaction here</textarea>
      > the value $reaction in my mailform script remained empty.
      > <textarea name = "reaction"> </textarea>
      > however, worked properly.
      > I detected this by coincidence because I had written almost a similar[/color]
      script[color=blue]
      > for another site but without default values in the text area. I couldn't
      > find any explanation for this behaviour on the web.
      > Any ideas?
      >
      > Thanks on beforehand, Martien van Wanrooij
      >
      >[/color]


      Comment

      Working...