| Coding Forum Problems with your code? Let's hear about it. |
12-11-2003, 07:36 PM
|
#1 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
Cookie
I need a code where the page checks and sees if there is a certain cookie and if you have it you can go to the page. Can anyone help? 
|
|
|
12-12-2003, 01:26 PM
|
#2 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
ANYONE??
|
|
|
12-13-2003, 07:17 AM
|
#3 (permalink)
|
|
Inactive
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
Latest Blog: None
|
huumm... cyberarmy dot com uses one ; sorry dunno how...
|
|
|
12-13-2003, 07:34 AM
|
#4 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
12-13-2003, 05:23 PM
|
#5 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
Sorry, but the function cookies is not in the online manual. Perhaps you misspelled it, or it is a relatively new function that hasn't made it into the online documentation yet. The following are the 20 functions which seem to be closest in spelling to cookies (really good matches are in bold). Perhaps you were looking for one of these:
|
|
|
12-13-2003, 05:34 PM
|
#6 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
$_COOKIE['name'];
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
12-13-2003, 05:35 PM
|
#7 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
so that would let you go to the page? like put that in a php page and it will let you access it?
|
|
|
12-13-2003, 05:36 PM
|
#8 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
if (isset($_COOKIE['name'])) {
// page code
}
else {
// error.. you cant view this page
}
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
12-13-2003, 05:45 PM
|
#9 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
cool, so its:
[code:1:206a7a932c]
<?php
if (isset($_COOKIE['name'])) {
// page code
}
else {
// error.. you cant view this page
}
?>
[/code:1:206a7a932c]
|
|
|
12-13-2003, 05:51 PM
|
#10 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
yes.. thats what i said
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
12-13-2003, 05:53 PM
|
#11 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
ok, thanks
|
|
|
12-13-2003, 05:57 PM
|
#12 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
|
|
|
12-13-2003, 05:58 PM
|
#13 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
hey brain scientist.. i cant see php code.. paste it in [code]
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
12-13-2003, 05:59 PM
|
#14 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
it is there, its not showing up for some reason...
|
|
|
12-13-2003, 06:00 PM
|
#15 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
wt.f.. i cant see php code through view source..
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
12-13-2003, 06:00 PM
|
#16 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
yeah, nither can I
|
|
|
12-13-2003, 06:03 PM
|
#17 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
the new code isn't showing up..
|
|
|
12-13-2003, 06:03 PM
|
#18 (permalink)
|
|
Contributing Member
Join Date: 10-13-03
Location: Work, USA
Posts: 5,382
Latest Blog: None
|
but the new content is...
|
|
|
12-13-2003, 06:09 PM
|
#19 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
omg your retarded. go get some sleep
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
|