Updated Lawyer Favorites Page

Broke down the page by section. Now want to have a single page that will reload itself, containing the section selected and the index.

This article suggests how to write a php page that would accept a variable. Now I need the syntax for if/then/else so that the page would include different text depending on the passed variable.

This article discusses if/then/else.

Try this:

if (some test) $nextpage = ‘page1.php‘;
else $nextpage = ‘page2.php‘;
header(“Location: $nextpage“);

Leave a Reply