Re: The code to the pages that I can't figure out.
| From: | Richard Lynch | Date: | Thu, 11 Jul 2002 03:46:33 +0000 |
| Subject: | Re: The code to the pages that I can't figure out. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107061@lists.php.net to get a copy of this message | ||
>it starts here ...
>http://counter.funyon.com/autocounter/signup/signup.phps
<?
ob_start();
session_start();
# My gut tells me this is wrong...
$username = $usersname;
if(is_null($signuppage)){
include("Signup1.php");
}elseif($signuppage = "Signup1"){
if($Account == "True"){
# Just put this right after session_start()
# Then you can just use if (isset($username)) to tell if they've
# provided some kind of username or not.
session_register("username");
include("admin.php");
}else{
include("Signup2.php");
}
}
?>
> then goes to here ...
> http://counter.funyon.com/autocounter/signup/Signup1.phps
<?
print "<input type=\"hidden\" name=\"PHP_SESID\" value=\"$PHP_SESSION_ID\">"
;
?>
You shouldn't need to send their session ID if Cookies are turned on, but if
you want to send it, you'll have to spell PHP_SESSID correctly... :-)
After that, I can't read Signup2.phps, so I can't really tell for sure
what's happening...
At a guess, though, you'll need a TYPE=HIDDEN NAME=Account VALUE="True" in
there, and it's probably missing... Or you could
session_register('Account') right after session_start() so that it will just
be there...
> or here... both included from the signup page
> http://counter.funyon.com/autocounter/signup/admin.phps
> included in admin is:
>
> http://counter.funyon.com/autocounter/include/getcounters.phps
> which makes links to:
>http://counter.funyon.com/autocounter/signup/editcounter.phps
>
>There you go, I hope that I can get some insight ;)
>Mike
>
>
>
--
Like Music? http://l-i-e.com/artists.htm
Off-Topic: What is the moral equivalent of 'cat' in Windows?