November 7, 2012

How send with post method in code behind?

Question by mum

I have a param A and its 25000 characters long.
How to send param A with GET method in php?

 $kq=0;
 $msg1= strtr(base64_encode($msg), '+/=', '-_,');              
 $Title1=strtr(base64_encode($Title), '+/=', '-_,'); 
header("Location:".JRoute::_('./index.php/i0702?'.'kq='.$kq."&Title=".$Title1."&Msg=".$msg1));

Note: strlen($msg1)> 25000 characters. Now, How send with post method?

Answer by Starx

The maximum characters you can send from GET method is 3000. Use POST method.

<form method="POST" action="your/url/to/open.php">

    <input type="text" value="<?php echo $a; ?>" />
    <input type="submit" />

</form>

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!