Assign a textarea value to a variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Peuplarchie
Forum Contributor
Posts: 148
Joined: Sat Feb 04, 2006 10:49 pm

Post by Peuplarchie »

if I use Post only space is write
if I use Get it write what i've put in the form action command
User avatar
Peuplarchie
Forum Contributor
Posts: 148
Joined: Sat Feb 04, 2006 10:49 pm

Post by Peuplarchie »

im on php4 windows 2003 server.
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Post by andym01480 »

The problem is that your form is using 'codesource'

Code: Select all

<textarea cols="80" rows="20" wrap="off" name="codesource" >
and the php is using 'codes'

Code: Select all

$new_line = "\r". $_GET['codes']."\n\r";
The PHP should be

Code: Select all

$new_line = "\r". $_POST['codesource']."\n\r";
to match the form and look for it "posted" from the form
User avatar
Peuplarchie
Forum Contributor
Posts: 148
Joined: Sat Feb 04, 2006 10:49 pm

Post by Peuplarchie »

There we go !!!!!

hahahahaha

Thanks finaly solve, the only thing I didnt try like usual ! :oops:
User avatar
aerodromoi
Forum Contributor
Posts: 230
Joined: Sun May 07, 2006 5:21 am

Post by aerodromoi »

Peuplarchie wrote:There we go !!!!!

hahahahaha

Thanks finaly solve, the only thing I didnt try like usual ! :oops:
Only change one thing at a time - you went all over the place (coding,codes, codesource,GET,POST). :roll:

As long as it works now...
aerodromoi
Post Reply