php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11436 Using method="POST" and enctype="multipart/form-data" causes form data invisibl
Submitted: 2001-06-12 09:28 UTC Modified: 2001-07-22 13:11 UTC
From: up at msh dot lv Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.5 OS: Linux Slackware 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: up at msh dot lv
New email:
PHP Version: OS:

 

 [2001-06-12 09:28 UTC] up at msh dot lv
I have apache-1.3.20 with PHP-4.0.5 compiled in.

This script works good only if $method="get".
It works also if $method="post" but without a
enctype="multipart/form-data".

<?php
  $method="post"; # "get"
 
  if ($name)
    {echo "name=$name<br>password=password";} else{ ?>
     <form method="<?php echo $method ?>" action="<?php echo $PHP_SELF; ?>" enctype="multipart/form-data">
          Enter name:<br>
          <input type="text" name="name" size="21">
          <br><br>Enter password:<br>
          <input type="password" name="password" size="21">
          <p><input type="submit" value="Submit">
     </form>
   <? } ?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-13 11:53 UTC] sniper@php.net
Works for me just fine.
(you have one $ missing when printing the password)

Could you please explain WHAT doesn't work? 
It works with or without the enctype for me.

--Jani

 [2001-07-22 13:11 UTC] andy@php.net
no feedback after 35+ days.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Nov 18 13:01:38 2019 UTC