From: [EMAIL PROTECTED] Operating system: Win95 WinNT4.0 PHP version: 4.1.2 PHP Bug Type: *General Issues Bug description: Accessing Data from HTML page using post method
Ok, i'm trying to access data from a html page using the method post and php file. It works perfectly, but usually a have problems with the variable names. For example, i have a text field in a html page and i want to pass the information typed in that text field to a php file, because i need to manipulate this data from the text field. That text field i called tf_project the html page index.html and the php file script.php. Ok, when i click on the html button to pass the data I'm supposed to be capable to access the data just accessing the $tf_project variable in the php script that the post method called. The method post you can invoke using the html tag in html file like that: <form name="form1" method="post" action="../php/script.php"> Then, the problem that i'm reporting is, in the php script the $tf_project variable value is empty, but it's supposed to store the value passed from the html text field. If i change the text's field name to textproject and try to access the value again in the php script using now $textproject it works. I tough it was a php limitation with the "_" character to name variables, but in another situation i was using text filed name = project and php variable $project, then i had the same problem again, i just changed the names to title1 and $title1 and my php script worked perfectly!! I'm using the php4.1.1 and win95 for development, i executed the same test in winnt and with php4.1.2 in the both operational systems, the same problem occurred again. I made these simple examples just to verify the same problem that i always have in my php applications when i use html and php. -- Edit bug report at http://bugs.php.net/?id=16574&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16574&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16574&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16574&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16574&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16574&r=support Expected behavior: http://bugs.php.net/fix.php?id=16574&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16574&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16574&r=submittedtwice
