RE: Error:Undefined index, for a simple line.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris
 
 
try just initializing the variable
 
$view = 0;  // if int
 
$view = ''; // if string
 
 
Bastien> Date: Tue, 2 Oct 2007 10:55:06 +1000> From: dmagick@xxxxxxxxx> To: chandan9sharma@xxxxxxxxx> CC: php-db@xxxxxxxxxxxxx> Subject: Re:  Error:Undefined index, for a simple line.> > Chris Carter wrote:> > Hi,> > > > Should I try with _REQUEST. the form is using POST method.> > > > My code:> > > > <?php> > $type = $_POST['type'];> > require_once "auth/config.php";> > > > > > rest of the code.> > > > Getting error:> > > > Notice: Undefined index: view in C:\Program Files\EasyPHP> > 2.0b1\www\HSRS\install.php on line 2> > This can't be the code you're using because you're not referencing > 'view' anywhere.> > -- > Postgresql & php tutorials> http://www.designmagick.com/> > -- > PHP Database Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> 
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux