CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 default page variables pre-sets

Print topic Send  topic

Author Message
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'

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.