close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

header error

Thread began 1/15/2013 4:42 pm by randyw2394710 | Last modified 1/16/2013 2:14 pm by Jason Byrnes | 392 views | 3 replies |

randyw2394710

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

Attached Files
choose_gallery.zip
gallery_pages.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the error is because there is a blank space at the end of line 1:
"<?php if(!session_id()) session_start(); ?> "

delete the space at the end of that code.

see this thread for more details:
showthread.php?t=19285

Sign in to reply to this post

randyw2394710

ho do i show the gallery name in tht div from the form

Sign in to reply to this post

Jason ByrnesWebAssist

well, in the show region behavior, you have select the gallery name column from the gallery recordset.

and instead of using a cookie value to show the gallery name, use either the gallery form element or the recordset.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...