Andrew Carnell
|
| Posted: 12/09/2002, 9:42 AM |
|
I've got a default page which has a variable called topic_id which is set by clicking on a list of topics on the page but when the user first visits the page I need to set topic_id to be 1. Cannot do this with SQL where topic_id=1 as it would then stop users selecting different topics.
I've tried in the Events OPEN
if ($fldtopic_id==null) {
header "location: indexopen.php?topc_id=1&");
}
else
{
}
Which sends the viewer to a special page before they have selected a topic_id but allows the viewer to see the topic they have selected ie. if topic_id is not NULL
This works except for if ($fldtopic_id==null) which fails to see Null values ...
HELP !!!
|
|
|
 |
Andrew Carnell
|
| Posted: 12/10/2002, 8:47 AM |
|
Solved it myself !!!
if ($topic_id==null) {
header "location: index.php?topc_id=1&");
}
else
{
}
Note must be in the 'Page' and not a 'Table' - 'Events' 'Before Show'
|
|
|
 |
|