Hello everyone and thank you in advance for any help you can provide. To start with I have a project that has help to reduce the amount of hair on my head. It involves a login in which I have and several pages that the end user will view. I am trying to make a base php page to open the rest of the pages. So I have set up a string called $pages = “step_”.$num.".php" this was the easy part, then I access the the page with an include ( “$pages” ), so my code looks like.
<?php
include ("header.php");
$num = 1;
$plues = $num++;
$minus = $num--;
$pages = "step_".$num.".php";
$base = "base.php"."?IS=".$logic;
$logic = 1;
include ( "$pages" );
echo $num;
echo $pages;
if ($num == 1) {
?>
<TABLE align=right>
<TR>
<TD>
<a href="base.php" onclick="<?php $plues; ?>">
<img src="http://www.innerlinks.com/IS_Images/continue.gif" />
</a>
<!-- <INPUT type="image" name="submit" src="http://www.innerlinks.com/IS_Images/continue.gif" width="74" height="20" />-->
</TD>
</TR>
</TABLE>
<br />
<br />
<br />
<?php
} else if ($num == 16) {
?>
<TABLE align=right>
<TR>
<TD>
<a href="base.php">
<img src="http://www.innerlinks.com/IS_Images/back.gif" />
</a>
<!-- <INPUT type="image" name="submit" src="http://www.innerlinks.com/IS_Images/back.gif" width="74" height="20" />
-->
</TD>
</TR>
</TABLE>
<br />
<br />
<br />
<br />
<?php
} else {
?>
<TABLE align=right>
<TR>
<TD>
<a href="base.php">
<img src="http://www.innerlinks.com/IS_Images/continue.gif" />
</a>
<!-- <INPUT type="image" name="submit" src="http://www.innerlinks.com/IS_Images/continue.gif" width="74" height="20" />
-->
</TD>
</TR>
</TABLE>
<br />
<br />
<br />
<TABLE align=right>
<TR>
<TD>
<a href="base.php">
<img src="http://www.innerlinks.com/IS_Images/back.gif" />
</a>
<!-- <INPUT type="image" name="submit" src="http://www.innerlinks.com/IS_Images/back.gif" width="74" height="20" />
-->
</TD>
</TR>
</TABLE>
<br />
<br />
<br />
<br />
<?php
}
include ("footer.php");
?>
I have tried different ways to add 1 to my var $num which should reload the include file and change the page but I don’t know were I am going wrong.
I am not asking for anyone to do my work for my please let me just say that now, all I am asking for is a fresh set of eyes and maybe a new perspective on how I might handle going about making my button add 1 to my var.
Thank you again for any and all help on this topic.