Jump to content

[SOLVED] _GET / variable / dynamic menu - problem !!!


johnwayne77

Recommended Posts

I am trying to make a custom tv program for my personal use.

 

Here is the link:

 

http://www.imobconsulting.ro/tv/program.php

 

select 'PROTV' and hit the 'Afiseaza program button'

 

It displays the todays program. If you hit the "maine" link above in the headers, it will display the tomorrow program. Everything ok with that.

 

Now try again to hit the 'maine' or 'pomaine' link again. It won't work.

 

Depending on the program I thought of a dinamic days menu (yesterday, today, tomorrow) in the headers.php

 

Here is the code:

 

<?
$page = $_GET['program'];
?>

 

and...

 

<td><div align="center"><a href="main.php?program=<? echo $page; ?>3">ieri</a></div></td>
    <td><div align="center"><a href="main.php?program=<? echo $page; ?>">azi</a></div></td>
    <td><div align="center"><a href="main.php?program=<? echo $page; ?>1">maine</a></div></td>
    <td><div align="center"><a href="main.php?program=<? echo $page; ?>2">poimaine</a></div></td>

 

I think you got the idea on how this works. (i host day3.php, day.php, day2.php, day1.php where day is the program i select)

 

How can I resolve the problem I've posted above?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.