RE: [PHP] Getting the value from a not posted form edit Vield.

From: Date: Fri, 21 Sep 2001 15:15:40 +0000
Subject: RE: [PHP] Getting the value from a not posted form edit Vield.
Groups: php.general 
Request: Send a blank email to php-general+get-68163@lists.php.net to get a copy of this message
I'm not sure what question you are asking, but try changing this line $aFinfOn = Getenv($aFindOnInput); to $aFinfOn = $HTTP_POST_VARS["aFindOnInput"]; The function getenv() gets environment variables, not post variables. Kirk > -----Original Message----- > From: hvm [mailto:hvm@amulet-software.net] > Sent: Friday, September 21, 2001 6:09 AM > To: php-general@lists.php.net > Subject: [PHP] Getting the value from a not posted form edit Vield. > > > Hi All, > > Has some one a solution for a non posted field to get the > entered information out in to the session variables. > My code: > > 1e The script "adv_search_dis.php4" is to build the input field. > > <?php > echo "<INPUT type='text' name=aFindOnInput > value='$aFindOn' size=15 maxlength=15 style='font-family: > Arial, Helvetica, sans-serif; color: black; background: > #DFFFFD'></td>"; > > // Find the diseases via Link > echo "<a href='../PhPScrips/0DiseaseFind.php4' > target='mainFrame' name='disease'>Search</a></FONT>"; > ?> > > 2e The script "0DiseaseFind.php4" is to get the variable > $aFindOnInput from the "adv_search_dis.php4" script in to the > session variable and start a new script to build the result > found in to the database. > > <?php > $aFinfOn = Getenv($aFindOnInput); > $aLetter = $aFinfOn; > echo "<FRAMESET rows='50, *' FRAMEBORDER='NO' > BORDER='0' > FRAMESPACING='0'>"; > echo "<FRAME NAME='topFrame' SRC='../PhPScrips/a.php4' > FRAMEBORDER='NO' SCROLLING='NO' NORESIZE > MARGINHEIGHT='22'>"; > echo "<FRAME NAME='abc results' > SRC='../PhPScrips/GetLSDNs.php4' FRAMEBORDER='NO' > SCROLLING='AUTO' NORESIZE>"; > ?> > > Any help? > > Yours Hans. >

« previous php.general (#68163) next »