Error:Undefined index, for a simple line.

Error:Undefined index, for a simple line.

am 01.10.2007 12:45:58 von Chris Carter

Hi,

Should I try with _REQUEST. the form is using POST method.

My code:

$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

--
View this message in context: http://www.nabble.com/Error%3AUndefined-index%2C-for-a-simpl e-line.-tf4547517.html#a12976882
Sent from the Php - Database mailing list archive at Nabble.com.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

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

am 02.10.2007 02:55:06 von dmagick

Chris Carter wrote:
> Hi,
>
> Should I try with _REQUEST. the form is using POST method.
>
> My code:
>
> > $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

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

am 02.10.2007 03:21:27 von Bastien Koert

--_e7c15a0b-e236-4ef2-b2ae-67d7f82066ed_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Chris
=20
=20
try just initializing the variable
=20
$view =3D 0; // if int
=20
$view =3D ''; // if string
=20
=20
Bastien> Date: Tue, 2 Oct 2007 10:55:06 +1000> From: dmagick@gmail.com> To:=
chandan9sharma@yahoo.com> CC: php-db@lists.php.net> Subject: Re: [PHP-DB] =
Error:Undefined index, for a simple line.> > Chris Carter wrote:> > Hi,> > =
> > Should I try with _REQUEST. the form is using POST method.> > > > My co=
de:> > > > > $type =3D $_POST['type'];> > require_once "auth/config.=
php";> > > > > > rest of the code.> > > > Getting error:> > > > Notice: Und=
efined index: view in C:\Program Files\EasyPHP> > 2.0b1\www\HSRS\install.ph=
p on line 2> > This can't be the code you're using because you're not refer=
encing > 'view' anywhere.> > -- > Postgresql & php tutorials> http://www.de=
signmagick.com/> > -- > PHP Database Mailing List (http://www.php.net/)> To=
unsubscribe, visit: http://www.php.net/unsub.php>=20
____________________________________________________________ _____
Connect to the next generation of MSN Messenger=A0
http://imagine-msn.com/messenger/launch80/default.aspx?local e=3Den-us&sourc=
e=3Dwlmailtagline=

--_e7c15a0b-e236-4ef2-b2ae-67d7f82066ed_--