using :: file.php?text=this as example
if else
<?php
if (!$text) {die('No text selected');}
elseif($text='this') {echo '<div class="topbar">This Text goes here</div>'; }
elseif($text='that') {echo '<div class="topbar">That Text goes here</div>'; }
?>
switch / case
switch ($text) {
case '':
die('No text selected');
break;
case 'this':
echo '<div class="topbar">This Text goes here</div>';
break;
case 'that':
echo '<div class="topbar">That Text goes here</div>';
break;
}
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
<?php
if (!$text) {die('No text selected');}
elseif($text='this') {echo '<div class="topbar">anything you like, once php has processed it its just html goes here</div>'; }
elseif($text='that') {echo '<div class="topbar">anything else you like, once php has processed it its just html goes here</div>'; }
switch ($text) {
case '':
die('No text selected');
break;
case 'this':
echo '<div class="topbar">anything you like, once php has processed it its just html goes here</div>';
break;
case 'that':
echo '<div class="topbar">anything else you like, once php has processed it its just html goes here</div>';
include ("./menu.php");
echo "<br class='dontprint'><p style='margin:0;padding:0'>Property rulesAll properties are subject to the following landlord's rulesCharacters in <i>italic</i> text refer to definitions, acts, and regulations. <b><i>Motor Vehicle Act 1989 R.S.,c.293,s.1</i></b> hereafter referred to as (<b><i>MVA</i></b>)<b><i>Protection of Property Act 1989 R.S.,c.363,s.1.</i></b> hereafter referred to as (<b><i>PPA</i></b>) <b><i>Residential Tenancies Act 1989 R.S.,c.401,s.1</i></b> hereafter referred to as (<b><i>RTA</i></b>) <b><i>Domestic Violence Intervention Act. 2001, R.S.,c. 29, s. 1. </i></b><i> </i>hereafter referred to as (<b><i>DVIA</i></b>)<b><i>Smoke-free Places Act. 2002 R.S.,c.12.s.1</i> </b>hereafter referred to as (<b><i>SFPA</i></b>)All regulation definitions and interpretation of the above and all Federal Provincial and Local Laws bylaws and Regulations are confirmed.<b>Discrimination is unlawful.</b> The intent of this and all other Apartments documents is not to discriminate. At all times, any word, phrase, mode of speech, that may be considered gender specific or exclusive is to be read and interpreted as gender neutral or inclusive.<b>Definitions:</b> For the purpose of these rules:<blockquote style=\"margin:0; margin-left:15px;padding:0;\"><b>Tenant </b>shall be those residents signatory to the lease<b>Resident</b> shall include all persons lawfully resident in the property(<i>RTA</i>)<b>Guest</b> shall include all visitors of any tenant or resident, and any tradesman employed by any tenant or resident, and any person not lawfully a resident <i>(RTA)</i>.<b>Derelict Vehicle</b> shall include any vehicle not currently registered insured and within inspection date for operation on public roads in the province of Nova Scotia.<b>Off Road Vehicle </b>shall include any vehicle not permitted to be registered for normal operation on public roads in the province of Nova Scotia, <b><u>and</u></b> disregarding any registration of the vehicle shall include any boat trailer travel trailer fifth wheel trailer motor home bus or camper.<b>Notice of breach of rule</b> shall be any written notice by the landlord or his agent delivered in hand, to the mailbox, or under the apartment door of the residence notifying the tenant of any breach of rule.<b>Proof of delivery </b>shall be the dated signature of the landlord or his agent on the landlord copy of the written notice of breach of rule, or any dated note in the landlord's diary, of the delivery of notice of breach of rule.</blockquote><h3 style='margin:0;padding:0;'>Public Safety</h3><ol style='margin-top:0;'><li>The breach of any property "Public Safety" or "Amenity" rule by any tenant resident or guest, shall unless immediately rectified, be grounds to issue a notice to quit <i>RTA.</i>10(7A) (five day notice to quit) to the responsible tenant.<li>Any second or subsequent breach by any tenant resident or guest of any property "Public Safety" or "Amenity" rule shall be grounds to issue a notice to quit <i>RTA.</i>10(7A) to the responsible tenant. <li>Tenants are responsible, and liable, for the conduct and actions of all residents and guests.<li>Guests have no implicit right to enter the property and must leave if asked by the landlord or his agent to vacate the property.";
echo "thats the idea anyway";
break;
}
?>
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376