Problem Passing Parameters in a form

From: Gil Grodsky (ggrodsky_at_charter.net)
Date: 03/09/05


Date: Wed, 09 Mar 2005 06:36:56 -0800

I am running Apache 2 and PHP 4.3.8 in the ubuntu distribution of linux
(based on debian). I am POSTing two variables in a form. The second
page doesn't start with the two variables defined, I have to exctract
them from $HTTP_POST_VARS at the beginning of my file. I inserted the code:

<?php
        $uname=$HTTP_POST_VARS["uname"];
        $pw=$HTTP_POST_VARS["pw"];
?>

at the beginning of my file. Without that code, the variables are not
defined.

The tutorial that I am working through says that the variables are just
going to be defined.

Is there a configuration item I need to change, or am I missing something?

Thanks for you help.
Gil Grodsky

PS: In anticipation of questions, here is the snipit where I create the
form:

<form method="POST" action="t2.php">
Username: <INPUT type="TEXT" name="uname"><br/><br/>
Password: <input type="PASSWORD" name="pw"><br/><br/>
<input type="SUBMIT"> <input type="RESET"><br/>



Relevant Pages

  • OT: behaviour (was: Re: ps - complete username)
    ... Yes, You're right, it could be seen as a hint like "You don't waste Your time ... There is this list regarding debian specific information. ... Linux without immediatly spending money. ... any posting here. ...
    (Debian-User)
  • Re: freebsd vs. linux - educated opinions wanted
    ... >> So, just download FreeBSD, install it and use it long enough to get ... >> as used to it as you are of LINUX and then see what you like. ... > at work i have built an IDS box with snort, mysql, apache, php, and acid. ... posting similar sounding questions that people often tend not to take ...
    (freebsd-questions)
  • Finding includes and libraries during software compile
    ... I have been using Debian for five or so years now and have basically learned ... most of Linux on Debian, hence I post my question to this list. ... compile software such as PHP with imap, Exim with Mysql, or PHP with ... I find that often the libraries or includes are not found even ...
    (Debian-User)
  • Re: Best development platform? Mac, Windows or Linux?
    ... Cygwin provides some of these ... Mac or Linux is the way to go. ... Development platform I prefer Eclipse (PHP environment) which is cross- ...
    (comp.lang.php)
  • PHP is the VB of Linux
    ... Linux and JSP. ... I plan to stay on Linux now. ... I started working with PHP and MySQL because I felt it had ... So, newbies, if you are looking for the "VB" in Linux, look no further ...
    (comp.lang.php)