- Cod: Selectaţi tot
<?php
$creare="<form method='post' action='inreg.php'>
nume:<input type='text' name='coment'><br>
<input type='submit' name='submit'></form>";
echo $creare;
include 'adauga.php';
?>
adauga.php
- Cod: Selectaţi tot
<?php
$coment=$_REQUEST['coment'];
$inTwoMonths = 60 * 60 * 24 * 60 + time();
setcookie('coment', $coment, $inTwoMonths);
if(isset($_COOKIE['coment']))
$adauga = $_COOKIE['coment'];
else {
echo '<center>';
echo $adauga;
echo '</center>'; }
?>
asa vrea cand scriu in campul din index .php sa se salveze 1 luna ceea ce am introidus eu in index.php...
asa vrea sa ma ajuti cu scriptul asta...
multumest aticipat


