|
Posted by Kimmo Laine on 05/27/05 15:06
"Lee David" <affordable_turnkey_solutions@comcast.net> wrote in message
news:5OCdnQ-E1qW8lQrfRVn-2g@comcast.com...
>>> I was using Sams Teach Yourself PHP which on page 81 says "I" returns
>>> the minutes. It is wrong of course. That was one of the problems.
>>> Another possible problem was the non-quote of the cookie variable as
>>> indicated by PHP fast&easy web development (Premier Press page 246). I
>>> do try to research things before I ask questions. Once I found out the
>>> books were wrong, it fell into place. The internet would have been more
>>> accurate, but I can't read that on the train.
Do you know how to open a new page and can it be modal? If it isn't modal,
then I could use javascript to open a page or just popup a prompt box, but
then the variables would be already set. And I would like to learn how to
do it in PHP. What I'm after is if the cookie isn't set, then you are a new
user and I'd like to get your name to personalize the pages. After the new
page gets the info, the user variable would be set and the cookie updated.
I couldn't find anything in the manual under "open" or "popup" that looked
like a new page. >>>
That sounds like a job for javascript. And no, it can't be modal. And no,
you can't use it since headers are already sent when user gets the input.
Instead try something like this: If no cookie is detected you redirect user
to another page where they input their info.
if(!$_COOKIE){
header("location: http://www.your.domain.com/whatsyourname.php");
exit(0);
}
After whatsyourname.php has gathered the cookie info, you can return to the
page user was getting to.
--
Welcome to Usenet! Please leave tolerance, understanding
and intelligence at the door. They aren't welcome here.
eternal piste erection miuku gmail piste com
Navigation:
[Reply to this message]
|