php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27850 didnt get forms value in php files
Submitted: 2004-04-03 00:14 UTC Modified: 2004-04-03 07:43 UTC
From: kalpeshchhatrola at compeersolutions dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.4 OS: Fedora
Private report: No CVE-ID: None
 [2004-04-03 00:14 UTC] kalpeshchhatrola at compeersolutions dot com
Description:
------------
I didint get any value of the forms in php file,


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-03 00:20 UTC] pollita@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Think paragraphs.
 [2004-04-03 00:58 UTC] kalpeshchhatrola at compeersolutions dot com
i have code like, file name is test.php
<?php
?>
<html>
<body>
<form action='test.php' method=post >
<input type=text name=name1 value=''>
<input type=text name=lanme value=''>
<input type=submit name=save value='save'>
</body>
</html>
so while after submit this page, and i want to echo $name1 and $lname in php file, there i didnt get any value which is i have inputed in to text field. 

if you know about this so please let us know you views
 [2004-04-03 02:35 UTC] pollita@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.

Try using $_POST['name1'], $_POST['lanme'], etc...
 [2004-04-03 06:50 UTC] kalpeshchhatrola at compeersolutions dot com
Thanks a lot, this is done now by 'register_globals' ,
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 19:01:28 2024 UTC