Forum Moderators: coopster

Message Too Old, No Replies

Simple variable declaration problem

declared in the header retrieve it later in the page

         

le_gber

4:11 pm on Sep 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know a bit of ASP and I designed a site using it.
I want to convert everything to PHP now and need your help
The page had a include for sub navigation triggered by a variable. It use to be presented like so

on the main page b4 <html> tag

<% dim page
page = "thePage"
%>

And in the include I had:

<% if page = "thePage" then %>
<% else %>
<% end if %>

The php I wrote is on the main page b4 <html> tag>:

<?php
$whatpage = "thePage";
?>

and in the include:


<?php
if($whatPage == "thePage"){
}
else {
}
?>

It's not working. I tried adding:
$whatPage=$_GET["whatPage"];
before the if statement but it ain't working either.

Help please

Leo

willybfriendly

4:41 pm on Sep 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



$whatpage!= $whatPage

WBF