header error
im trying to create add gallery page on seperate include page which has a form then goes to choose_gallery page
i have record set
and i have validation set
<?php
if ((((isset($_POST["add-gallery-yes"]))?$_POST["add-gallery-yes"]:"") != "")) {
$WAFV_Redirect = "";
$_SESSION['WAVT_choosegallery_875_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateNM($totalRows_gallery . "",-1,0,"",",.",true,1);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"choosegallery_875");
}
}
?>
on the choose_gallery page im trying to show Error div if record exists
<?php
if ("".((isset($_POST["galleryname"]))?$_POST["galleryname"]:"") ."" == "".$row_gallery[''] ."") { // WebAssist Show If
?>
<div id="error"><?php echo((isset($_COOKIE["gallery_name"]))?$_COOKIE["gallery_name"]:"") ?></div>
<?php
} // ("".((isset($_POST["galleryname"]))?$_POST["galleryname"]:"") ."" == "".$row_gallery[''] ."")
?>
i also want to show the name which allready exists
im getting these errors
Cannot modify header information - headers already sent by (output started at /home/content/96/8026696/html/admin_cms/choose_gallery.php:2) in /home/content/96/8026696/html/webassist/form_validations/wavt_scripts_php.php on line 83