Wrap if statement around HTML/PHP??
Posted: Thu May 31, 2007 7:33 am
feyd | Please use
and this is the if statement I need to wrap around it...
Thanks!!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm new to php and I need to wrap an if statement around a group of php/html and don't know how to go about it...if anyone could help, that would be great...
I need to make the following chunk of code display based on the if statement below:Code: Select all
<form action="<?php echo($cartweaver->thisPageName . "?cartid=" . $_SESSION["CartId"]);?>" method="post" name="addToCart">
<?php cw3ProductOptions($productId, $taxRate);?>
<input name="prodId" type="hidden" value="<?php //echo($productId);?>">
<input name="submit" type="submit" class="formButton" value="Add to Cart">
</form>Code: Select all
if(isset($_SESSION["customerID"]) && $_SESSION["customerID"] != "0") {
}feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]