What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Why wont this work?

Why wont this work?
Author: Message:
Val
Senior Member
****

Avatar

Posts: 698
Reputation: 45
31 / Other / Flag
Joined: Jun 2004
O.P. Why wont this work?
Hey guys I wanted a way for users to select the style sheet they want to use for  my site and save their selection in a cookie so my friend Ezra wrote this up for me but it dosent work becouse the code just gives me and error "unexpected { on line 4"

so here is the code its not all of it just the part that gives the error
code:
<?php
//Setting the cookie

if(!isset($_COOKIE['css']){
    if(isset($_GET['style']) && $_GET['style'] != ""){
        setcookie("css", htmlspecialchars($_GET['style'], ENT_QUOTES), time()+11156);
        header("/");
    }
}
?>


if you need more code just request it
Menthix:
Anonymous doesn\'t have a leader.
Anonymous is the leader of ShawnZ.

Max:
True. But deep down, we all know.
ShawnZ is incharge.
he is /b/ in human form.
01-05-2006 04:11 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Why wont this work? - by Val on 01-05-2006 at 04:11 PM
RE: Why wont this work? - by L. Coyote on 01-05-2006 at 04:25 PM
RE: Why wont this work? - by Val on 01-05-2006 at 05:05 PM
RE: Why wont this work? - by Plik on 01-05-2006 at 05:11 PM
RE: Why wont this work? - by Ezra on 01-05-2006 at 05:21 PM
RE: Why wont this work? - by L. Coyote on 01-05-2006 at 05:21 PM
RE: Why wont this work? - by Val on 01-05-2006 at 06:09 PM
RE: Why wont this work? - by Nathan on 01-05-2006 at 06:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On