php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37369 HTML Form Submit Problem
Submitted: 2006-05-08 17:16 UTC Modified: 2006-05-10 10:15 UTC
From: alexm at emarket2 dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.1.4 OS: Win 2003
Private report: No CVE-ID: None
 [2006-05-08 17:16 UTC] alexm at emarket2 dot com
Description:
------------
We are submitting form from HTML email message to PHP page
and printing $_POST array.

We are getting blank $_POST array in 50% of cases on PHP 5.0.5 installation and about 10-15% ratio for PHP 5.1.4.
The problem is happening randomly, sometimes on first submit. 

The problem only happening on WIN 2003 Server(SP1)and IIS6 platform. We have tried the same PHP installation on WIN XP Pro (IIS5) and it works reliably. We are running PHP as ISAPI module.

Also, if form is submitted from Web Browser, the problem 
is not happening. We can see form data in HTTP Request submitted from email message, but it is not appear on PHP page.




Reproduce code:
---------------
HTML Form:
===========================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>

</head>

<body>
<form action="https://g2invitrogen.emarket2.com/reg/landpage.php" method="post" name="form11" id="form11">
  <table width="370" border="0" cellspacing="0" cellpadding="3" class="copybold">
    <tr>
      <td colspan="2"><span class="questblack">Who are </span><span class="questred">You?</span>
	  <input name="submitaction" type="hidden" id="submitaction" value="Insert">
		<input name="IDALIAS" type="hidden" id="IDALIAS" value="<IDALIAS>"></td>
    </tr>
    <tr>
      <td width="120"> First Name:</td>
      <td><input name="FIRSTNAME" type="text" class="formpick" id="FIRSTNAME"  tabindex="1" value="Alex"></td>
    </tr>
    <tr>
      <td width="120"> Last Name:</td>
      <td><input name="LASTNAME" type="text" class="formpick" id="LASTNAME"  tabindex="2" value="Melnychuck"></td>
    </tr>
    <tr>
      <td> Email:</td>
      <td><input name="EMAIL" type="text" class="formpick" id="EMAIL"  tabindex="3" value="alexm@emarket2.com"></td>
    </tr>
    <tr>
      <td width="120"> Job Function:</td>
      <td><select name="JOBCODE" class="formpick" id="JOBCODE"  tabindex="4">
          <option value=" "></option>
          <option >Core Facility Manager/Director</option>
          <option >Core Facility Technician</option>
          <option >Department Head/Director/VP</option>
          <option >Environ.Health/Safety Officer</option>
          <option >Graduate/Post-Graduate Student</option>
          <option >Lab Director/Manager</option>
          <option >Principal Investigator</option>
          <option >Professor/Teacher/Instructor</option>
          <option >Purchaser/Buyer/Procurement</option>
          <option >Research Scient./Post-Doctoral</option>
          <option >Research/Technical Assistant</option>
          <option >Sales & Marketing</option>
          <option >Supply Ctr.Host/Stores Manager</option>
          <option selected>Other</option>
      </select></td>
    </tr>
    <tr>
      <td colspan="2"><img src="https://static.emarket2.com/invitrogen/iprofile/images/smallthinredbar.jpg" width="360" height="9" border="0"></td>
    </tr>
    <tr>
      <td colspan="2"><span class="questblack">What are </span><span class="questred">You</span><span class="questblack"> researching?</span></td>
    </tr>
    <tr>
      <td colspan="2"><textarea name="RESEARCHING" rows="2" class="formarea" id="RESEARCHING" tabindex="5">Everything</textarea></td>
    </tr>
    <tr>
      <td colspan="2"><img src="https://static.emarket2.com/invitrogen/iprofile/images/smallthinredbar.jpg" width="360" height="9" border="0"></td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr align="center">
      <td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
    </tr>
  </table>
</form>
</body>
</html>
===========================================================
PHP Page:
===========================================================
<?  print_r($_POST);  ?>
===========================================================

Expected result:
----------------
Array ( [submitaction] => Insert [IDALIAS] => TEST [FIRSTNAME] => Alex [LASTNAME] => Melnychuck [EMAIL] => alexm@emarket2.com [JOBCODE] => Other [RESEARCHING] => Everything [Submit] => Submit ) 

Actual result:
--------------
Array()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-10 10:15 UTC] tony2001@php.net
We are aware of PHP's problems with stability under IIS and are working 
to rectify the problem. Unfortunatly your bug report does not contain any
extra useful information and we already have enough bug reports open about
this issue. If you can provide more detailed information such as a 
reproducable crash or a backtrace please do so and reopen this bug. 
Otherwise please keep trying new releases as we are working to resolve 
the problems on this platform
 
Thanks for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 14:00:03 2025 UTC