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>