POST array content problem

9 views
Skip to first unread message

sachin sharma

unread,
Feb 3, 2015, 7:33:33 AM2/3/15
to codei...@googlegroups.com
Hi,

I have created a view which has a form with post method. There is a text input field and submit button.

################
View Code =>

<html>
<body>
<form method="POST" name="testform" id="testform" action="/testmyfrom">
    <input type="text" name="testurl" id="testurl" value=""/>
    <input type="submit" value="SUBMIT" />
</form>
</body>
</html>

#############
I am entering following input in form and submit it.


#############

Controller Code =>

public function testmyfrom() {
    var_dump($_POST);
}

##############

I am getting following value in testurl field.



##################

I am stuck here and I am not able to resolve it. Please help why input data is truncated.

Thanks & Regards,
Sachin Kumar

Reply all
Reply to author
Forward
0 new messages