note 53466 rejected from function.setcookie by nlopess
| From: | nlopess@php.net | Date: | Thu, 02 Jun 2005 16:53:07 +0000 |
| Subject: | note 53466 rejected from function.setcookie by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89815@lists.php.net to get a copy of this message | ||
Note Submitter: gabrielex at gmail dot com
----
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