Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sime variable question. please read.

Status
Not open for further replies.

kpdvx

Programmer
Dec 1, 2001
87
US
here is the code: I believe I have used this before, but for some reason, it doesnt seem to work. Also, I don't want to use PHP_SELF, thats why i set the link to test1.php. Also, the name of the file that containes this code is test1.php.

<?
$backnumber = $issue_id -1;
$nextnumber = $issue_id +1;
$backbutton = &quot;test1.php?issue_id=&quot;.$backnumber;
$nextbutton = &quot;test1.php?issue_id=&quot;.$nextnumber;
$welcomemsg = &quot;<h2>Hello, Welcome to our site!</h2><br>&quot;
?>

<?
echo $welcomemsg;
echo &quot;<a href=&quot;;
echo $nextbutton;
echo &quot;>Next Number</a>&quot;;
?>
<br>
<?
echo &quot;<a href=&quot;;
echo $backbutton;
echo &quot;>Previous Number</a>&quot;;
?>
<br><br><br><br>
<a href=&quot;test1.php?issue_id=50&quot;>Click Here to Start Anew</a>

-Thanks.
 
<?
$backnumber = $issue_id -1;
$nextnumber = $issue_id +1;
$backbutton = &quot;test1.php?issue_id=&quot;.$backnumber;
$nextbutton = &quot;test1.php?issue_id=&quot;.$nextnumber;
$welcomemsg = &quot;<h2>Hello, Welcome to our site! $issue_id</h2><br>&quot;
?>

<?
echo $welcomemsg;
echo &quot;<a href=&quot;;
echo $nextbutton;
echo &quot;>Next Number</a> $nextnumber&quot;;
?>
<br>
<?
echo &quot;<a href=&quot;;
echo $backbutton;
echo &quot;>Previous Number </a> $backnumber&quot;;
?>
<br><br><br><br>
<a href=&quot;test1.php?issue_id=50&quot;>Click Here to Start Anew</a> ***************************************
Party on, dudes!
[cannon]
 
nope, that doesnt work either, thanks though.
 
$backnumber = $_GET[issue_id] -1;
$nextnumber = $_GET[issue_id] +1;
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Odd, it worked fine for me :) ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top