Sunday 8 December 2019

html - php form $_POST does not contain submit attribute name and value pair











name="agent_search_input"
placeholder="Enter Code,Email or Phone Number">








".__( "Details:" ).""; ?>
action="">







" name="agent_code_edit" id="agent_code_edit">




" name="distributer_phone_number_edit" id="distributer_phone_number_edit">








placeholder=""
name="agent_first_name_edit" id="agent_first_name_edit">





"
id="agent_last_name_edit">




placeholder=""
name="agent_father_name_edit" id="agent_father_name_edit">









"
class="form-control" name="agent_phone_number1_edit"
id="agent_phone_number1_edit">





"
class="form-control" name="agent_phone_number2_edit"
id="agent_phone_number2_edit">





"
class="form-control" name="agent_email_edit"
id="agent_email_edit">






".__( "Address:" ).""; ?>




name="agent_province_edit" id="agent_province_edit"
class="province form-control">










name="agent_district_edit" id="agent_district_edit"
class="district form-control">










placeholder="" value=""

id="agent_city_edit">




placeholder=""
value="" id="agent_street_edit">








"
class="form-control" value=""
name="agent_latitude_edit" id="agent_latitude_edit">





placeholder=""
value="" name="agent_longtitude_edit"
id="agent_longtitude_edit">







".__( "Active Products and Sales Method:" ).""; ?>














".__( "Agent Type:" ).""; ?>



id="agent_type_independent" class="form-control"
value="independent">Independent





id="agent_type_sub" value="sub_agent">Sub Agent








class="form-control" id="agent_phone_number_edit"
placeholder="enter parent agent's phone number">



















value="Update Agent" class="btn btn-default" />











Whenever i debug $_POST, it contains all form attributes except the input field with the type 'submit' and name 'submitForm'.



If i change the name of input field to 'submit' then $_POST shows key value pair for submit input too.




I can't figure out whey it is like soo.



Could someone help me solve this?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...