Jump to content

and.hunt

Members
  • Posts

    5
  • Joined

  • Last visited

and.hunt's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. and.hunt

    Cookies

    Many thanks. Now I can continue building my page.
  2. and.hunt

    Cookies

    It's okay now, i've realised what ive been doing wrong. But is it possible to dothis: <?phpif (isset($_COOKIE["language_english"])) {require("./english/menu.php");echo $_COOKIE["language_english"] . "<br />";}if (isset($_COOKIE["language_german"]))require("./german/menu.php");elseecho "";?> But instead of having two cookies, have it set up that the first option displays if ther's a cookie called language, with value english, and the other one when the cookies value is german?
  3. and.hunt

    Cookies

    I'd like a more detailed one, that is the first one i tried. ANd i have another problem, i try to get a cookie to be made, but none is made (I use FF, whenever a cookie is to be set I get a message, but in this case i don't.): <?php setcookie("language_english", $name, time()+36000);?> (i have it right at the start of the document, before the opening html tag)
  4. and.hunt

    Cookies

    Thanks, it works now. Also, is there a good guide to cookies anywhere?
  5. and.hunt

    Cookies

    I am trying to use cookies in my site: <?phpif (isset($_COOKIE["language_english"]))echo "<?php require("./english/menu.php"); ?>" . $_COOKIE["language_english"] . "<br />";if (isset($_COOKIE["language_german"]))echo "<?php require("./german/menu.php"); ?>";else"";?> When I try to load the page i get an error:Parse error: syntax error, unexpected '/' in /usr/export/www/vhosts/funnetwork/hosting/andrewjrvhunt/page/index.php on line 23(page: http://andrewjrvhunt.an.funpic.de/page/index.php). When I remove the <?php require("./english/menu.php"); ?> part out the page works. How can I get this to work properly?
×
×
  • Create New...