[PHP-DEV] PHP 4.0 Bug #5965: Transparent session ID doesn't work with certain <form name="..."> combinations From: gregor.maier <email protected>
Date: 08/04/00

From: gregor.maier <email protected>
Operating system: SunOS 2.5.1
PHP version: 4.0.1pl2
PHP Bug Type: Session related
Bug description: Transparent session ID doesn't work with certain &lt;form name="..."&gt; combinations

I am using session management with transparent session IDs. The SID is only sometimes added to the URL when using a form with a name element. If the SID is added depends on the order in which the elements are used.

This line doesn't work (SID is NOT added to the action-URL)
    <form name="myform" action="myscript.php4" method="post">
But the following line works
    <form action="myscript.php4" name="myform" method="post">

<!-- Here's a longer example -->
 <tr>
      <td>
      <form name="testme_form" action="session01.php4" method="post">
         <input name="text" value="Hello World">
         <input type="submit" value="doesnt">
      </form>
      </td>
   </tr>
   <tr>
      <td>
      <form action="session01.php4" name="testme_form2" method="post">
         <input name="text" value="Hello World">
         <input type="submit" value="works">
      </form>
      </td>
   </tr>
   
   <tr>
      <td>
      <form name="testme_form3" action="session02.php4" method="post">
         <input name="text" value="Hello World">
         <input type="submit" value="Doesnt work with 02">
      </form>
      </td>
   </tr>
   <tr>
      <td>
      <form action="session02.php4" name="testme_form4" method="post">
         <input name="text" value="Hello World">
         <input type="submit" value="works with 02">
      </form>
      </td>
   </tr>

<!-- END -->

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>