Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to "include" a HTML page in a php script ONLY when wanted?

Status
Not open for further replies.

TerryJones

Programmer
Jul 19, 2000
15
AU
Dear all,<br><br>I am writting a PHP script, where I want to have several diff GUI's (each one depending on user ... eg: 1 for authorised user & 1 to say that they aren't authorised).<br><br>I wish to set it up, so that the called page is mostly HTML tags, and its only called upon in that given case.<br><br>IE: I want something like:<br><br>// In PHP Script1<br>if (authorised)<br>&nbsp;{include &quot;interface1.php3&quot;;} <br>&nbsp;else<br>&nbsp;{include &quot;interface2.php3&quot;;}<br><br>Could anyone please tell me whether this will work, and if not how to get it so it does.<br><br>Thank you.
 
Never mind everyone.<br><br>I figured out how to do this one!<br><br>If anyone has any suggestions about my other problems thought ... please suggest away!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top