[thelist] Undefined variable: lastpoll /php

Daniel Kushner thelist at websapp.com
Tue Oct 8 15:38:00 CDT 2002


Try:

if (isset($_COOKIE['lastpoll']) && $_COOKIE['lastpoll']== $_POST['id']){
	.....


Regards,
Daniel Kushner
_________________________________________
Need hosting? http://thehostingcompany.us

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Gary Bland
> Sent: Tuesday, October 08, 2002 4:02 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] Undefined variable: lastpoll /php
>
>
> Can an anyone tell me why I am getting this error Undefined variable:
> lastpoll It sure looks defined to me. It is PHP code.
>
>
> if ($lastpoll && $lastpoll == $_POST['id']){ /* Error is for this line*/
> echo" YOU have already voted. Please return for the next poll.";
> }
> else{
> setCookie("lastpoll", $_POST['id'], time()+2592000);
> }
> TIA
> Gary
>
>
>
>
> --
> Gary Bland
> StarChaser Web Architecture
> http://star-chaser.com
> Building Tomorrow's World Today
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !



More information about the thelist mailing list