Re: PHP & "POST"

From: Date: Wed, 16 Apr 2003 18:41:32 +0000
Subject: Re: PHP & "POST"
References: 1  Groups: php.lang 
Request: Send a blank email to php-lang+get-483@lists.php.net to get a copy of this message
Hope this helps... <html> <head> </head> <?php // Variable to get the data from the textarea $frmPost = $_POST[strTxtarea]; ?> <body> // <form action="post.php" method="post" enctype="multipart/form-data" name="frmPost" id="frmPost"> <p> <textarea name="strTxtarea" cols="32" rows="10"></textarea> </p> <p> <label> <input type="submit" name="strSubmit" value="Submit Text"> </label> </p> </form> <p><?php echo $frmPost?>&nbsp;</p> </body> </html> "Samura1" <ohmysam@hotmail.com> wrote in message news:20020814103112.36920.qmail@pb1.pair.com... > Hey guys, > I want to know how to retrieve data from POST (form) ... > > What I want to do is... > > I've got a textarea for ppl to enter large amount of text (essay), and I let > ppl submit it (using POST), then insert these data into mySQL. > > I get it working if I use GET (I only know how to use GET, dunno about POST) > with small amount of words (say 1600 characters), but when there are more > than 2000 characters, the submit button doesn't work. And I found that it is > becoz GET does not allow too large amount of text appear in the URL... > > So anyone can teach me how to get data from POST? I read some web sites but > still have no idea how to do it ... I think I need an example... > > Please help > >

« previous php.lang (#483) next »