Actually, I disagree with the explenation here. The reasoning behind it
is correct, but the explenation contains a number of incorrect statements.
The = (a single '=') is the so-called assignment operator. This operator
assigns the right-hand value to the left-hand variable. So, when you
write
Woohoo! I got it to work. Thanks everyone! This is exactly what I needed:
making multiple-page files in one file. It saves me the hassle of trying to
know what file is what, and where. Instead.. one big file!
On 12/18/05, Łukasz Hejnak <[EMAIL PROTECTED]> wrote:
>
> Erik Johnson napisał(a):
>
Erik Johnson napisał(a):
Okay.. I was just wondering; What's the difference between = and ==? Would
it matter if I changed them? It seems as though if I put = instead of the
=='s, it comes up ONLY page two no matter what $page equals, and if it's ='s
instead of =='s, then it comes up with only p
e: [PHP] Someone please help me with this PHP script.
Thank you very much. My dad is in college, but I have been teaching myself
HTML, Java, VB6, and PHP. I've been learning to do graphical artwork with
Adobe Illustrator, and Photoshop. I actually started programming before my
dad was in
y page one no matter what $page
equals.
On 12/18/05, Zareef Ahmed <[EMAIL PROTECTED]> wrote:
>
>
> - Original Message -
> From: "M. Sokolewicz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "PHP LIST"
> Sent: Sunday, Decemb
- Original Message -
From: "M. Sokolewicz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "PHP LIST"
Sent: Sunday, December 18, 2005 4:34 AM
Subject: Re: [PHP] Someone please help me with this PHP script.
> Aside from the 20 suggestions you&
I still can't seem to get it to work. If you want to see my phpinfo(), then
go to http://lom.game-host.org/uploads/erik/info.php .
I'll keep trying, and hope for the best! It may be my php.ini file, but I
have no clue.
Thank you very much. My dad is in college, but I have been teaching myself
HTML, Java, VB6, and PHP. I've been learning to do graphical artwork with
Adobe Illustrator, and Photoshop. I actually started programming before my
dad was in school, and I got him started I guess! Anyway; I've learnt a
en set, false if not :)
hth
-Original Message-
From: Erik Johnson [mailto:[EMAIL PROTECTED]
Sent: 18 December 2005 15:42
To: php-general@lists.php.net
Subject: Re: [PHP] Someone please help me with this PHP script.
I was wondering.. how exactly does the isset function work? I saw that
R
- Original Message -
From: "Erik Johnson" <[EMAIL PROTECTED]>
To:
Sent: Sunday, December 18, 2005 10:41 AM
Subject: Re: [PHP] Someone please help me with this PHP script.
I was wondering.. how exactly does the isset function work? I saw that
Robert Cummings wrote
Zareef Ahmed napisał(a):
Hi,
Hi
what is not working in this code?
That's how I see it
http://lom.game-host.org/uploads/erik/";;
// yes the isset is ok here
If(!isset($page)) {
$page = "one";
}
if($page == "one") {
// as far as I know echo is all low case written but maybe it's not a
mus
I was wondering.. how exactly does the isset function work? I saw that
Robert Cummings wrote:
$page = isset( $_GET['page'] ) ? $_GET['page'] : null;
What exactly does that mean?
Well. Here's an example of the page --
http://lom.game-host.org/uploads/erik/
It is just loading the second page, no matter what. I haven't added the
isset thing yet, but I'll try it. BTW: I'm only 14, so I have yet to use an
older version, and upgrade to a newer PHP. ;-)
Thanks,
Erik Johnson
Hi Johnson,
what is not working in this code?
what is the problem? It will always execute the first part of if condition,
i.e.
It will print
Page OneIt works!!http://lom.game-host.org/uploads/erik/index.php?page=two";>Nice...<
/body>
What you are expecting from this script?
One recommendation,
Aside from the 20 suggestions you've already got, let me add this one:
elseif( ($page != "one") or ($page != "two") or ($page != NULL) ) {
Echo "Undefined!page isn't
defined correctly!";
}
is useless code. Why?
$page = null; never happens (you made sure of that further up the page).
$page
What is it doing, or not doing?
Try changing the I do not know why this isn't working, but it would be very helpful if
> someone looked over it.
>
> $defaultpage = "http://lom.game-host.org/uploads/erik/";;
>
> If($page == NULL) {
> $page = "one";
> }
>
> if($page == "one") {
> Echo "
On Sat, 2005-12-17 at 23:05, Erik Johnson wrote:
> I do not know why this isn't working, but it would be very helpful if
> someone looked over it.
>
> $defaultpage = "http://lom.game-host.org/uploads/erik/";;
>
> If($page == NULL) {
> $page = "one";
> }
What is this magical $page variable?
17 matches
Mail list logo