note 53466 added to function.setcookie

From: Date: Thu, 02 Jun 2005 12:19:12 +0000
Subject: note 53466 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-89792@lists.php.net to get a copy of this message
Hi, I wrote a PHP message board, it works using a simple form, that sends data to a PHP page that parse the $_GET[*] output, applying stripslashes() and htmlentities() to that data. data is sent through the form is as follows : $_GET[name] $_GET[mail] $_GET[message] this "GETS" became, after bad code checks, the following: $name1 $mail1 $message2 that's beacause stripslashes is applied only to $_GET[message] I need to know how to set cookies for $_GET[name] and $_GET[email], so that next time visitor come back, name and email values are yet set. Is there also something I have to change on the form? Thanks a lot. Gabriele ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53466 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53466&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53466&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53466&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53466&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53466&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53466&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89792) next »