Build your professional network on facebook via our app Go to app
 
 
Posted in Community :

PHP Developers Zone |

PHP Experts |

Joomla

 
Functional Area : Programming Languages
Activity: Question posted: 07 07 2008 08:37:35 +0000, 3 answers, 283 views, last activity 07 06 2010 20:18:08 +0000
 
Share
 
 
  Rate : 
 
 

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?

 
 Top Answer :
Rating : +1 

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.



  Answered by     Rakesh Shekhawat, Project Manager, Octal Info Solution Pvt. Ltd.  | 07 08 2008 07:17:06 +0000
[ Delete ]
[ Edit ]
Not Rated

Thank You

  Answered by     Malarvizhi , Sr Software Engineer, Photon Infotech  | 07 08 2008 02:12:17 +0000
[ Delete ]
[ Edit ]
Not Rated

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;

}

 
Leading Recruitment Firm
Leading Recruitment Firm
Viewers also viewed
AS BOTH VLSI EMBEDDED ARE CHIP DESIGN LEVEL PROGRAMMING WHICH ONE IS BETTER? MEANS WHICH HAVING...
 
1 referals 9 arguments, 5188 views
Agree vs Disagree
 
265 referals 18 arguments, 321 views
more...  
Unanswered Questions (62)
Hello Sir Good day.. Sir i am Vignesh from Tamilnadu.I have applied 4 GEAT 02 in ur firm.Till...
 
1 referals 0 answers, 0 views
I mean that it sector totally depends on outsourcing.But it might happen that in future other...
 
0 referals 0 answers, 0 views
sir this is R.V.Srinivas Research scholar andhra University, i am doing my mphil on retail...
 
1 referals 0 answers, 0 views