Hi,
I'm trying to post a form from an html page to a php page (see below).
print_r($_POST); returns nothing but an empty array, however,
print file_get_contents('php://input'); correctly shows everything from the html form post data.
I've read around on the web and found nothing obvious that I'm doing wrong, and also contacted tch tech support who say there's nothing wrong with the server/php installation (though I have read a few comments on google that suggest it might be a weird installation php dependency/bug or something).
html page---sorry about the code, it's generated---
<form id="form_2" name="contactform" onsubmit="return validate_form_2(this)" action="contact.php" accept-charset="UTF-8" method="post" target="_self" enctype="text/plain" style="margin:0px;">
<div id="txt_29" style="position:absolute; left:84px; top:556px; width:45px; height:14px;-moz-box-sizing:border-box;box-sizing:border-box; overflow:hidden;">
<P class="Normal-P"><label for="edit_19"><span class="Normal-C1">Name*</span></label></P>
</div>
<div style="position:absolute; left:187px; top:556px; width:205px; height:22px; text-align:left;">
<input type="text" id="edit_19" name="visitorname" size="30" width="205px;" value="">
</div>
<div id="txt_30" style="position:absolute; left:84px; top:586px; width:78px; height:14px;-moz-box-sizing:border-box;box-sizing:border-box; overflow:hidden;">
<P class="Normal-P"><label for="edit_20"><span class="Normal-C1">Email address*</span></label></P>
</div>
<div style="position:absolute; left:187px; top:586px; width:205px; height:22px; text-align:left;">
<input type="text" id="edit_20" name="emailaddress" size="30" width="205px;" value="">
</div>
<div id="txt_31" style="position:absolute; left:84px; top:616px; width:76px; height:14px;-moz-box-sizing:border-box;box-sizing:border-box; overflow:hidden;">
<P class="Normal-P"><label for="combo_16"><span class="Normal-C1">Query type</span></label></P>
</div>
<div style="position:absolute; left:187px; top:616px; width:134px; height:22px; text-align:left;">
<select id="combo_16" name="querytype" size="1">
<option value="select" selected>Please select</option>
<option value="commisions">Commissions</option>
<option value="purchase">Purchase</option>
<option value="comment">Comment</option>
<option value="general">General questions</option>
</select>
</div>
<div id="txt_3" style="position:absolute; left:84px; top:646px; width:87px; height:13px;-moz-box-sizing:border-box;box-sizing:border-box; overflow:hidden;">
<P class="Normal-P"><label for="edit_1"><span class="Normal-C2">Phone number</span></label></P>
</div>
<div style="position:absolute; left:187px; top:646px; width:205px; height:22px; text-align:left;">
<input type="text" id="edit_1" name="phone" size="30" width="205px;" value="">
</div>
<div id="txt_34" style="position:absolute; left:84px; top:676px; width:75px; height:14px;-moz-box-sizing:border-box;box-sizing:border-box; overflow:hidden;">
<P class="Normal-P"><label for="text_2"><span class="Normal-C1">Comment*</span></label></P>
</div>
<div style="position:absolute; left:187px; top:676px; width:206px; height:102px; text-align:left;">
<textarea id="text_2" rows="6" cols="23" name="comment" style="height:100%; width="206px;"></textarea>
</div>
<div style="position:absolute; left:312px; top:787px; width:81px; height:22px; text-align:left;">
<input type="submit" id="butn_4" name="Submit" value="Submit">
</div>
</form>
---
the php page just has
<?php
print_r($_POST);
print file_get_contents('php://input');
?>
it would be a great relief to me if someone figured this out!!!
thanks