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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: amjad_rahman at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 23:01:29 2025 UTC