|
|
Activity:
Question posted: 07 07 2008 08:37:35 +0000,
3 answers, 283 views, last activity
07 06 2010 20:18:08 +0000
|
|
|
|
Suppose, we have 2 html editor(text area) in our form and we have to use GET method to retrieve this data. What is the best way to do this?
GET method limits on the amount of information to send((max. 100 characters), refer this link to get information about GET method http://www.w3schools.com/PHP/php_get.asp. so in that case its better to use POST method, which does not have limitation on no. of characters to be sent from one form to other form.
I think data Encoding will help. Create a javascript function and call it when the form is submitted. In that function encode the content of the text area and pass it as query string to the resulting page as URL redirection...some thing like the one below..
<form onsubmit="encodeit()">
<!-- your form contents-->
</form>
<script>
function encodeif() {
url = "yourresultingpage.php?content1="+encodeURIComponent(textarea.value);
window.location.href = url;
}
|
|
|
|
|
|
|
|
|
|
Could you please let me know what is the diffrence between CGI and ISAPI. Which we should use for php installation? |
How can I get long data using GET method without data loss? |
