#37369 [NEW]: HTML Form Submit Problem
| From: | alexm at emarket2 dot com | Date: | Mon, 08 May 2006 17:16:52 +0000 |
| Subject: | #37369 [NEW]: HTML Form Submit Problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96828@lists.php.net to get a copy of this message | ||
From: alexm at emarket2 dot com
Operating system: Win 2003
PHP version: 5.1.4
PHP Bug Type: Scripting Engine problem
Bug description: HTML Form Submit Problem
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"> </td>
</tr>
<tr>
<td colspan="2"> </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()
--
Edit bug report at http://bugs.php.net/?id=37369&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37369&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37369&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37369&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37369&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37369&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37369&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37369&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37369&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37369&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37369&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37369&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37369&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37369&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37369&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37369&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37369&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37369&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37369&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37369&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37369&r=mysqlcfg