RE: [PHP] Cookies not being read - begging php 4 chapter 8 pg 283
| From: | Ford, Mike [LSS] | Date: | Fri, 04 Apr 2003 15:13:36 +0000 |
| Subject: | RE: [PHP] Cookies not being read - begging php 4 chapter 8 pg 283 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-142353@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Paul Kraus [mailto:pkraus@pelsupply.com]
> Sent: 04 April 2003 15:44
>
> Also when I first run this at the top I get this error...
>
> Notice: Undefined index: typeset in
> c:\inetpub\wwwroot\testing\cookies.php on line 4
> Notice: Undefined index: size_sel in
> c:\inetpub\wwwroot\testing\cookies.php on line 5
>
> I assume its because the var have not been filled but I still need the
> lines there do I need to turn of warnings or something?
Use isset():
if (isset($_POST['type_sel'])) etc...
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211