Help - Search - Members - Calendar
Full Version: Survey list
Big Red Spark Forums > Big Red Spark.com Forums > Unit Command Climate Assessment and Survey System (UCCASS)
Alex
Hi!

How to make index.php go directly to a survey (if using only one), without showing a list of all available surveys?
JHolmes763
Save index.php under a different name and use the following code as your index.php page:
CODE
<?php header('Location: http://www.example.com/survey/survey.php?sid=xxx'); ?>

---John Holmes...
rex2
QUOTE(JHolmes763 @ Jun 13 2006, 10:45 AM) *

Save index.php under a different name and use the following code as your index.php page:
CODE
<?php header('Location: http://www.example.com/survey/survey.php?sid=xxx'); ?>



The above (changed to 'localhost') results in an error message::

“www.nosyntax.net” redirected too many times.

The redirection has been stopped for security reasons.

Where is the list of available surveys stored? I added a new survey and none of the files under UCCASS/
have a new date.

Thanks,

-rex2
JHolmes763
Can you post the exact code you used?

The surveys are stored in multiple tables within the database.

John
rex2
QUOTE(JHolmes763 @ Aug 8 2009, 11:17 AM) *

Can you post the exact code you used?

The surveys are stored in multiple tables within the database.


The redirect message was due to a DFO error. It works now. And, after I posted I realized the survey names are
stored in the MySQL database.

Sorry for the noise.

-rex
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.