php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22615 html form variable not works
Submitted: 2003-03-09 13:40 UTC Modified: 2003-03-09 13:49 UTC
From: amjad_rahman at hotmail dot com Assigned:
Status: Not a bug Package: *Database Functions
PHP Version: 4.3.0 OS: window 2000 server & xpwin profe
Private report: No CVE-ID: None
 [2003-03-09 13:40 UTC] amjad_rahman at hotmail dot com
hello,
i am a student of computer fields and i am studying in e-commerce sir i used php version 4.3.0 , 4.3.1 , 4.0.3pl1 
with iis 5.0 and 5.1 in win 2000 server and xp professional i have a problem with php.when i run it work write mean its function e.g phpinfo() run write but when i print the variable that  come from html form mean i collect the data from html form <input> tag it canot print.
mean i take a Name="fname" in <input> tag of the form and when i used this Name in php file Like this $fname; and print it like ($fname); it does not print same in echo ($fname); no error come php run proper but it not show the form attributes.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-09 13:49 UTC] pollita@php.net
This bug system is for problems with the PHP scripting engine, however your description indicates a configuration and/or scripting error.

Most likely you are using an old tutorial which dates from before PHP version 4.2.0.

When retrieving data from forms either use the super globals: $_GET, $_POST, and/or $_REQUEST, or enable the 'register_globals' configuration directive in php.ini.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jul 11 18:01:24 2020 UTC