Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: thejustpark Newsgroups: comp.lang.javascript Subject: how to pass text set in a javascript? Date: Wed, 15 Aug 2012 18:34:57 -0700 (PDT) Organization: http://groups.google.com Lines: 36 Message-ID: <855e4568-1663-4362-8e47-e97873cdd33f@googlegroups.com> NNTP-Posting-Host: 98.201.177.84 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1345081003 891 127.0.0.1 (16 Aug 2012 01:36:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Aug 2012 01:36:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.201.177.84; posting-account=OCQSMwoAAABMMpyKXNaKLZDz4JD4l-mu User-Agent: G2/1.0 X-Received-Bytes: 2166 Xref: csiph.com comp.lang.javascript:15370 In my php page, I have this text area whose text data I want to pass to the php code set in the action field. This is working, when I type something in the area. But then, I placed a little button below the text area, so that if a user clicks on it, an example text gets on there. Then, I expect that if I click on the submit button, the example text is passed to next.php . But I find it not working. OK, let me summarize with a code snippet.
The button actually puts "asdf" on fgData text area. But when I do "; print_r($_POST); echo ""; ?> in next.php, there isn't even a variable named fgData. What am I missing to pass the data? Thanking in advance, Justpark.