Re: PHP & "POST"
| From: | Seung Hwan Kang | Date: | Sat, 19 Apr 2003 09:36:40 +0000 |
| Subject: | Re: PHP & "POST" | ||
| References: | 1 2 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-484@lists.php.net to get a copy of this message | ||
couple of things to catch up!!!
Dennis Martin Ong wrote:
Hope this helps... <html> <head> </head> <?php // let's check, it's came from an original form.if (strtolower($_POST["mode"]) == "add") { // Variable to get the data from the textarea $frmPost = $_POST["strTxtarea"]; } else { echo "Possible POSTING attack..!"; } // and so on..!
?> <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="hidden" name="mode" value="add">
<input type="submit" name="strSubmit" value="Submit Text"> </label></p> </form> <p><?php echo $frmPost?> </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 Iletppl 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 aboutPOST)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 itisbecoz 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 sitesbutstill have no idea how to do it ... I think I need an example... Please help