note 84137 rejected from function.setcookie by felipe
| From: | felipe@php.net | Date: | Mon, 30 Jun 2008 15:24:26 +0000 |
| Subject: | note 84137 rejected from function.setcookie by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141010@lists.php.net to get a copy of this message | ||
Note Submitter: spam4u2 at live dot nl
----
can someone pleas help me the follwong code dosent work:
in an submit forum:
<form action="welcome.php" method="get">
<table width="200" border="1">
<tr>
<th scope="col">name:* </th>
<th scope="col"><input type="text" name="name"
/></th>
</tr>
<tr>
<th scope="row">pass:*</th>
<td><input type="password" name="age" /></td>
</tr>
in welcome.php:
<?php
$value = '$_GET["age"]';
setcookie("yark", $value);
$i=$_GET["name"];
echo $i;
?>
and in sohowcookie.php
<?php
echo $_COOKIE["yark"];
?>
if you want to mail or repay the answer of wats wrong and wath i should do plz