note 84137 added to function.setcookie
| From: | spam4u2 at live dot nl | Date: | Mon, 30 Jun 2008 14:27:53 +0000 |
| Subject: | note 84137 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141009@lists.php.net to get a copy of this message | ||
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
----
Server IP: 83.137.20.135
Probable Submitter: 81.171.28.118
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/84137
Del: integrated -- https://master.php.net/note/delete/84137/integrated
Del: useless -- https://master.php.net/note/delete/84137/useless
Del: bad code -- https://master.php.net/note/delete/84137/bad+code
Del: spam -- https://master.php.net/note/delete/84137/spam
Del: non-english -- https://master.php.net/note/delete/84137/non-english
Del: in docs -- https://master.php.net/note/delete/84137/in+docs
Del: other reasons-- https://master.php.net/note/delete/84137
Reject -- https://master.php.net/note/reject/84137
Search -- https://master.php.net/manage/user-notes.php