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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.