Sunday, 15 June 2014

html - Internet Explorer has no post data (request body), whereas Google Chrome does, same actions? -



html - Internet Explorer has no post data (request body), whereas Google Chrome does, same actions? -

the form loaded ajax page based on selection separate form. google chrome posts data, ie posts no info speak of. issue here?

forms (initial select , next form) in ie:

<div id="client-form-div" style="padding-top: 15px; clear: both;"><form name="clientregistrationform" disabled="0" id="clientregistrationform" action="" enctype="application/x-www-form-urlencoded" method="post" country="1" identity="901221025" firstname="" middlename="" lastname="" race="1" emailaddress="" phonenumber="0110801" faxnumber="" cellnumber="" usertype="4" code="" sat_id="0" new="0" gender="0" dob="1990-12-21" region_id="0" smme_id="26" active="1" entrydate="2013-01-22 10:30:17" username="" userid="63164"><dl class="zend_form"> <dt id="country-label">&nbsp;</dt> <dd id="country-element"> <input name="country" id="country" type="hidden" value="1"></dd> <div class="col-md-12 field-box"><dt id="identity-label"><label class="required" for="identity">id number:</label></dt> <dd id="identity-element"> <input name="identity" class="col-md-9 form-control" id="identity" type="text" maxlength="13" readonly="" value="90125"><ul class="good" id="good-identity"><li class="color-green"><i class="color-green align-glyph glyphicons circle_ok"></i> </li></ul></dd></div> <dt id="userid-label">&nbsp;</dt> <dd id="userid-element"> <input name="userid" id="userid" type="hidden" value="63164"></dd> <div class="col-md-12 field-box"><dt id="firstname-label"><label class="required" for="firstname">first name:</label></dt> <input name="cellnumber" class="col-md-9 form-control" id="cellnumber" type="text" maxlength="10" value=""></dd></div> <dt id="region-label">&nbsp;</dt> <dd id="region-element"> <input name="region" id="region" type="hidden" value="0"></dd> <dt id="usertype-label">&nbsp;</dt> <dd id="usertype-element"> <input name="usertype" id="usertype" type="hidden" value="4"></dd> <dt id="submit-label">&nbsp;</dt><dd id="submit-element"> <input name="submit" class="btn-flat primary btn-next pull-right" id="submit" style="margin-right: 15px;" type="submit" value="next"></dd></dl></form></div>

forms in chrome:

<div id="init-form-div"><form enctype="application/x-www-form-urlencoded" action="" method="post"><dl class="zend_form"> <div class="col-md-12 field-box"><dt id="type-label"><label for="type" class="optional">identification type:</label></dt> <dd class="ui-custom span5"> <select name="type" id="type"> <option value="0" label="---select---">---select---</option> <option value="1" label="south african id number">south african id number</option> <option value="2" label="passport number">passport number</option> </select></dd></div></dl></form></div> <div id="client-form-div" style="padding-top: 15px;clear: both;"><form id="clientregistrationform" name="clientregistrationform" enctype="application/x-www-form-urlencoded" method="post" userid="63164" username="" usertype="4" emailaddress="" entrydate="2013-01-22 10:30:17" active="1" firstname="bue" middlename="nt" lastname="masemola" phonenumber="0110852001" faxnumber="" cellnumber="" smme_id="269" region_id="0" dob="1990-12-21" gender="0" race="1" disabled="0" new="0" country="1" identity="90185" sat_id="0" code="" action=""><dl class="zend_form"> <dt id="country-label">&nbsp;</dt> <dd id="country-element"> <input type="hidden" name="country" value="1" id="country"></dd> <div class="col-md-12 field-box"><dt id="identity-label"><label for="identity" class="required">id number:</label></dt> <dd id="identity-element"> <input type="text" name="identity" id="identity" value="901285" class="col-md-9 form-control" maxlength="13" readonly="" ><ul id="good-identity" class="good"><li class="color-green"><i class="color-green align-glyph glyphicons circle_ok"></i> </li></ul></dd></div> <select name="race" id="race"> <option value="0" label="---select---">---select---</option> <option value="1" label="black" selected="selected">black</option> <option value="2" label="coloured">coloured</option> <option value="3" label="asian">asian</option> <option value="4" label="white">white</option> </select></dd></div> <div class="col-md-12 field-box"><dt id="disabled-label"><label for="disabled" class="required">disabled:</label></dt> <dd class="ui-custom span5"> <select name="disabled" id="disabled"> <option value="0" label="no" selected="selected">no</option> <option value="1" label="yes">yes</option> </select></dd></div> <div class="col-md-12 field-box"><dt id="emailaddress-label"><label for="emailaddress" class="optional">e-mail address:</label></dt> <dd id="emailaddress-element"> <input type="text" name="emailaddress" id="emailaddress" value="" class="col-md-9 form-control"></dd></div> <div class="col-md-12 field-box"><dt id="phonenumber-label"><label for="phonenumber" class="optional">phone number:</label></dt> <dd id="phonenumber-element"> <input type="text" name="phonenumber" id="phonenumber" value="0110852001" class="col-md-9 form-control" maxlength="10"></dd></div> <div class="col-md-12 field-box"><dt id="faxnumber-label"><label for="faxnumber" class="optional">fax number:</label></dt> <dd id="region-element"> <input type="hidden" name="region" value="0" id="region"></dd> <dt id="usertype-label">&nbsp;</dt> <dd id="usertype-element"> <input type="hidden" name="usertype" value="4" id="usertype"></dd> <dt id="submit-label">&nbsp;</dt><dd id="submit-element"> <input type="submit" name="submit" id="submit" value="next" class="btn-flat primary btn-next pull-right" style="margin-right:15px;"></dd></dl></form></div>

google chrome post data:

country:1 identity:901285 userid:63164 firstname:busi middlename:biseng lastname:mala race:1 disabled:0 emailaddress: phonenumber:011001 faxnumber: cellnumber: region:0 usertype:4 submit:next

ie request body:

(empty)

the problem this:

<form name="clientregistrationform" disabled="0" id="clientregistrationform" action="" enctype="application/x-www-form-urlencoded" method="post" country="1" identity="9012" firstname="b" middlename="nthabi" lastname="m" emailaddress="" faxnumber="" cellnumber="" usertype="4" code="" sat_id="0" new="0" gender="0" dob="1990-12-21" region_id="0" active="1" entrydate="2013-01-22 10:30:17" username="" userid="63164">

specifically the: disabled="0" part.

in ie11, disables form , prevents post info beingness posted.

it recommended not set parameters in form, security risk , useless.

the reason happening because using zend framework zend form __construct(). when constructing use:

parent::__construct($record);

where should be

parent::__construct();

html forms internet-explorer google-chrome

No comments:

Post a Comment