Re: PHP & "POST"

[email protected] ("Dennis Martin Ong") Thu, 17 Apr 2003 02:41:32 +0800
Newsgroups php.lang
Message-ID <[email protected]>
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" <[email protected]> wrote in message
news:[email protected]...
> 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
>
>