Hello,
I'm having trouble with the cookies.
I've got 3 php
form.php - here i enter a firstname and last name to show later
<form action="choose.php" method="post">
FirstName:
<input type="text" name="name">
LastName:
<input type="password" name="last">
<input type="submit" value="Enter">
--
choose.php - here i choose of the layout and set the cookies that i've entered @ form.php
<?php
setcookie ('name',name,time()+360);
setcookie ('last',last,time()+360);
?>
<head>
--
applet.php - here is a java applet, and I'd like to read the name and the last cookies.
<param name="nick" value="<?php echo $HTTP_COOKIE_VARS['name']; ?>">
<param name="last" value="<?php echo $HTTP_COOKIE_VARS['last']; ?>">
My problem is, that it doesn't work. Gives error, in applet.php that need a , or a ;
Any idea what's the problem, or how can i solve this? If you know any other way to make that FirstName and LastName get into the parameter, pls help me.
Thanks a lot.