Forums

PHP

This topic is locked

Set Cookie - Submitted Form Element Problem

Posted 22 Feb 2002 13:42:33
1
has voted
22 Feb 2002 13:42:33 Wil Dobson posted:
<font face='Arial'>HI all,
I am getting an error popup when trying to set cookies to a value of a form element using the Cookie Suite..
The error reads: "The Server Behavior panel cannot determine whether "Set Cookie - Variable" or "Set Cookie - Submitted Form Element" is applied to your page. Please select Edit Server Behaviors and change one of the two behaviors to ensure that each is uniquely identifiable."

I called the cookie ckUserID and the form field name is 'userid'. Here is the code the extention wrote:

&lt;?php
# PHP Set Cookie - Variable/Submitted Field Value v1.0
# Copyright (c)2001. Tim Green.
$tgtime_ckUserID="";
if ($tg_time_ckUserID="" {
$tg_time_ckUserID="3600";
}
setcookie("ckUserID",$userid,time()+$tg_time_ckUserID,"/","",0);
?&gt;

I guess I just don't understand what it is wanting me to do to change it.

Thanx in advance.
</font id='Arial'>

Replies

Replied 23 Feb 2002 15:50:58
23 Feb 2002 15:50:58 Tim Green replied:
This error basically means that UltraDev can determine which behavior has been applied. However, for the time being you can safely ignore this as it does not stop the code from working.

When I get chance I will sort this problem out.

Regards


Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic