ToC won't "see" a modified heading style

I am in the template "white paper" and created a unique heading style. "Heading 4" shows up in my paragraph styles, and my headings are duly made in "Heading 4." "Heading 4" shows up in the TOC inspector. It is checked on the left and right (it is not dimmed). But when I update the ToC, nothing shows up there. It only works if I use the original heading style.

Well, nothing like asking a Q to get an insight. Here's a crappy yet functional run-around. I deleted the original "heading" and then took "heading 4" and renamed it "heading". Now the ToC looks weird (every other word is a different color) but I can fix that manually when I am done with the doc't.
Unless someone has a better answer....

Similar Messages

  • Emails won't open on Mac but will on laptop and iPhone. On Mac can see the subject heading but the rest is blank in both preview pane and if I try to open the emai. Can anyone help me?

    emails won't open on Mac but will on laptop and iPhone. On Mac can see the subject heading but the rest is blank in both preview pane and if I try to open the emai. Can anyone help me?

    Back up all data. Rebuild the mailbox.

  • RH 9, MS Word, Heading styles messing up my mini TOC

    I must be doing something wrong. :-)
    I have done many Word to RH projects. All the same look and feel. I include a mini TOC at the top of my topics, (which are actually book chapters). Now, however, my mini TOCs have no contents in them, and the reason is that my headings are not called "Heading 1, Heading 2" etc, which is what RH requires for mini TOCs. My heading styles came in as "WD_Heading1, WD_Heading2" etc.
    I do not know why they came in like that. I imported the Word files as I always do. I tried renaming the headings styles, but no go.
    What up wit this? Please advise. Thanks!

    Yes, I was doing something wrong.
    During import of the MSWord doc, I forgot to make sure each Word Document paragraph style was mapped to a RoboHelp Style in the drop-down list. A simple step.
    You know, I don't remember having to do this before. I believe the Robohelp style (Heading 1, Heading 2, etc.) was selected by default. Perhaps because I was using a previous proejct as a template.
    Well I am happy to answer my own question for anyone else who runs into this problem. It is not too gratifying, however, as it feels like scoring a goal on your own goalie.

  • Modify Header in XML report

    There is an example in the users manual to modify the report header by using a callback, Chapter 10-12 Adding to a Report Using Callbacks. Will this work for xml reports in TS 3.1? I don't have any experience with xml, but need to add text and possibly an image to the header of a report.  My attempts so far do not generate any errors, but do not output anything to the report. I can break on the statement in the callback so I know it is called as the report is generated.

    XML is a language designed to contain data with no information on how to present it.  You can open the XML report in notepad to see what the raw XML data looks like.  You'll notice it is far different than how you view the report.  To make the data more presentable, a style sheet (XSL) is used to translate the data.  This converts XML data into a HTML document to present the data in a more user-friendly way.  The style sheets are completely customizable.  If you wish to display a picture, you would need to modify the style sheet.  You also may need to modify the header of the XML document to describe what picture should be displayed.  These tasks are not trivial for beginners in XML.
    For more information on XML, i would recommend http://www.w3.org/XML/.
    Allen P.
    NI

  • Cannot Modify Header Information Errors

    Hello all,
    I am working on building an members only area to my website, and have used the "turorial" provided in dreamweaver help.  After creating the pages though I am encountering erros which I believe have to do with the redirecting.
    On my registration page (www.hondovfd.org/newsite/register.php) I am getting the error:
    Warning:  Cannot modify header information - headers already sent in /var/home/hondovfd/hondovfd.org/www/newsite/register.php on line 50
    The registration goes through, as I can see it in my database, but the error prevents anything further.
    On my login page (www.hondovfd.org/newsite/login.php) I immediatly get these two errors when loading the page:
    Warning:  session_start() [function.session-start]: Cannot send session cookie - headers already sent in /var/home/hondovfd/hondovfd.org/www/newsite/login.php on line 1074249146
    Warning:  session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/home/hondovfd/hondovfd.org/www/newsite/login.php:1074249146) in /var/home/hondovfd/hondovfd.org/www/newsite/login.php on line 1074249146
    And once I enter a valid username/password this error is also added:
    Warning: Cannot modify header information - headers already sent by (output started at /var/home/hondovfd/hondovfd.org/www/newsite/login.php:1074249146) in /var/home/hondovfd/hondovfd.org/www/newsite/login.php on line 68
    If you would like to try and diagnose the username/password I have been using is"test" for both fields.
    Anyone have any ideas why this is occuring?
    Thanks,
    David

    Here is the code from my login page:
    <?php virtual('/newsite/Connections/hondovfd.php');?>
    <?php if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['username'])) {
      $loginUsername=$_POST['username'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "/newsite/membersonly.php";
      $MM_redirectLoginFailed = "/newsite/loginfailed.html";
      $MM_redirecttoReferrer = true;
      mysql_select_db($database_hondovfd, $hondovfd);
      $LoginRS__query=sprintf("SELECT username, password FROM login WHERE username=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $hondovfd) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;          
        if (isset($_SESSION['PrevUrl']) && true) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];     
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="Title" -->
    <title>Login</title>
    <!-- InstanceEndEditable -->
    <meta name="description" content="Hondo Fire and Rescue serves the Arroyo Hondo and Canada Village areas of Santa Fe County, NM." />
    <meta name="keywords" content="hondo, hondo fire, hondo vfd, hondo fire department, santa fe county fire department, santa fe county, volunteer fire department, hondo volunteer fire department" />
    <link href="/newsite/stylesheet.css" type="text/css" rel="stylesheet" />
    <!--[if IE]>
    <style type="text/css">
    #mainContent, #sidebar1 { zoom: 1;}
    </style>
    <![endif]-->
    <script src="/newsite/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="/newsite/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="thrColLiqHdr">
    <div id="container">
    <div id="header"></div>
      <div id="sidebar1">
      <h3>Navigation : </h3>
      <ul id="MenuBar1" class="MenuBarVertical">
      <li><a href="/newsite/index.html">Home</a></li>
    <li><a href="/newsite/support.html">Support Hondo</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Information Menu</a>
        <ul>
          <li><a href="/newsite/people.html">Our People</a></li>
          <li><a href="http://www.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=101620713606637979698.00045b6ead4ab4ea70b78&z=11" target="_blank">Response Area</a></li>
          <li><a href="/newsite/medical.html">Medical</a></li>
          <li><a href="/newsite/apparatus.html">Apparatus</a></li>
          <li><a href="/newsite/training.html">Training</a></li>
          <li><a href="/newsite/volunteer.html">Volunteer</a></li>
          <li><a href="/newsite/statistics.html">Statistics</a></li>
          <li><a href="/newsite/patchtrading.html">Patch Trading</a></li>
        </ul>
      </li>
      <li><a href="#">Photo Gallery</a></li>
      <li><a href="/newsite/calendar.html">Calendar</a></li>
      <li><a href="/newsite/news.html">Blog/News</a></li>
      <li><a href="/newsite/links.html">Links</a></li>
      <li><a href="/newsite/contact.html">Contact Us</a></li>
    </ul>
    <br />
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <span class="lefttext">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="8567201">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </img></input></input>
      </span>
    </form>
    <span class="lefttext"><br />
    </span>
    <center>
      <span class="lefttext"><a href="http://www.facebook.com/pages/Santa-Fe-NM/Hondo-Volunteer-Fire-Department/74284233488" target="_blank" class="lefttext">Hondo VFD on Facebook</a></span>
    </center>
      <!-- end #sidebar1 --></div>
      <div id="sidebar2"> 
        <p>Call Statistics for November</p>
      <table width="90%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60%">EMS Calls</td>
        <td width="40%">##</td>
      </tr>
      <tr>
        <td>Fire Calls</td>
        <td>##</td>
      </tr>
      <tr>
        <td>Other Calls</td>
        <td>##</td>
      </tr>
    </table>
      <hr />
        <div id="cse" style="width:100%;">Loading</div>
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <script type="text/javascript">
      google.load('search', '1');
      google.setOnLoadCallback(function(){
        new google.search.CustomSearchControl().draw('cse');
      }, true);
    </script>
         <!-- End Google Search Element -->
      </div>
      <!-- end #sidebar2 -->
      <div id="mainContent">
      <div class="top"></div><div class="wrap"><!-- InstanceBeginEditable name="Main Content" -->
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="47" class="h2">Members Only Login</td>
      </tr>
      <tr>
        <td><form id="login" name="login" method="POST" action="<?php echo $loginFormAction; ?>">
        <table width="40%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="31%">Username:</td>
        <td width="69%"><input name="username" type="text" /></td>
      </tr>
      <tr>
        <td>Password</td>
        <td><input name="password" type="password" /></td>
      </tr>
    </table>
    <input name="Submit" type="submit" />
        </form></td>
      </tr>
    </table>
      <!-- InstanceEndEditable -->
    </div>
    <div class="bottom"></div>
    </div>
         <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --> <br class="clearfloat" />
      <div id="footer">
        <p align="center">&copy; Copyright 2009 Hondo Volunteer Fire Department | <a href="mailto:[email protected]">Contact Us</a><a href="http://www.legalhelpers.com/chapter-13-bankruptcy/chapter13.html"></a><br />Hosting provided by <a href="http://studiox.com/" target="_blank">Studio X</a></p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>
    Here is the code from my registration page:
    <?php virtual('/newsite/Connections/hondovfd.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    // *** Redirect if username exists
    $MM_flag="MM_insert";
    if (isset($_POST[$MM_flag])) {
      $MM_dupKeyRedirect="/newsite/registerinvalidusername.html";
      $loginUsername = $_POST['username'];
      $LoginRS__query = sprintf("SELECT username FROM login WHERE username=%s", GetSQLValueString($loginUsername, "text"));
      mysql_select_db($database_hondovfd, $hondovfd);
      $LoginRS=mysql_query($LoginRS__query, $hondovfd) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      //if there is a row in the database, the username was found - can not add the requested username
      if($loginFoundUser){
        $MM_qsChar = "?";
        //append the username to the redirect page
        if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar = "&";
        $MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar ."requsername=".$loginUsername;
        header ("Location: $MM_dupKeyRedirect");
        exit;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO login (username, password, email, name) VALUES (%s, %s, %s, %s)",
                           GetSQLValueString($_POST['username'], "text"),
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['name'], "text"));
      mysql_select_db($database_hondovfd, $hondovfd);
      $Result1 = mysql_query($insertSQL, $hondovfd) or die(mysql_error());
      $insertGoTo = "/newsite/registersuccess.html";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO login (username, password, email, name) VALUES (%s, %s, %s, %s)",
                           GetSQLValueString($_POST['username'], "text"),
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['name'], "text"));
      mysql_select_db($database_hondovfd, $hondovfd);
      $Result1 = mysql_query($insertSQL, $hondovfd) or die(mysql_error());
      $insertGoTo = "/newsite/registersuccess.html";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location:", $insertGoTo));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="Title" -->
    <title>Register</title>
    <!-- InstanceEndEditable -->
    <meta name="description" content="Hondo Fire and Rescue serves the Arroyo Hondo and Canada Village areas of Santa Fe County, NM." />
    <meta name="keywords" content="hondo, hondo fire, hondo vfd, hondo fire department, santa fe county fire department, santa fe county, volunteer fire department, hondo volunteer fire department" />
    <link href="stylesheet.css" type="text/css" rel="stylesheet" />
    <!--[if IE]>
    <style type="text/css">
    #mainContent, #sidebar1 { zoom: 1;}
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="thrColLiqHdr">
    <div id="container">
    <div id="header"></div>
      <div id="sidebar1">
      <h3>Navigation : </h3>
      <ul id="MenuBar1" class="MenuBarVertical">
      <li><a href="/newsite/index.html">Home</a></li>
    <li><a href="/newsite/support.html">Support Hondo</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Information Menu</a>
        <ul>
          <li><a href="/newsite/people.html">Our People</a></li>
          <li><a href="http://www.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=101620713606637979698.00045b6ead4ab4ea70b78&z=11" target="_blank">Response Area</a></li>
          <li><a href="/newsite/medical.html">Medical</a></li>
          <li><a href="/newsite/apparatus.html">Apparatus</a></li>
          <li><a href="/newsite/training.html">Training</a></li>
          <li><a href="/newsite/volunteer.html">Volunteer</a></li>
          <li><a href="/newsite/statistics.html">Statistics</a></li>
          <li><a href="/newsite/patchtrading.html">Patch Trading</a></li>
        </ul>
      </li>
      <li><a href="#">Photo Gallery</a></li>
      <li><a href="/newsite/calendar.html">Calendar</a></li>
      <li><a href="/newsite/news.html">Blog/News</a></li>
      <li><a href="/newsite/links.html">Links</a></li>
      <li><a href="/newsite/contact.html">Contact Us</a></li>
    </ul>
    <br />
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <span class="lefttext">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="8567201">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </img></input></input>
      </span>
    </form>
    <span class="lefttext"><br />
    </span>
    <center>
      <span class="lefttext"><a href="http://www.facebook.com/pages/Santa-Fe-NM/Hondo-Volunteer-Fire-Department/74284233488" target="_blank" class="lefttext">Hondo VFD on Facebook</a></span>
    </center>
      <!-- end #sidebar1 --></div>
      <div id="sidebar2"> 
        <p>Call Statistics for November</p>
      <table width="90%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60%">EMS Calls</td>
        <td width="40%">##</td>
      </tr>
      <tr>
        <td>Fire Calls</td>
        <td>##</td>
      </tr>
      <tr>
        <td>Other Calls</td>
        <td>##</td>
      </tr>
    </table>
      <hr />
        <div id="cse" style="width:100%;">Loading</div>
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <script type="text/javascript">
      google.load('search', '1');
      google.setOnLoadCallback(function(){
        new google.search.CustomSearchControl().draw('cse');
      }, true);
    </script>
         <!-- End Google Search Element -->
      </div>
      <!-- end #sidebar2 -->
      <div id="mainContent">
      <div class="top"></div><div class="wrap"><!-- InstanceBeginEditable name="Main Content" -->
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="47" class="h2">Create an Account</td>
      </tr>
      <tr>
        <td><p>Please fill in the following information to create an account:</p>
        <form action="<?php echo $editFormAction; ?>" id="form1" name="form1" method="POST">
          <table width="53%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="38%">Name</td>
        <td width="62%"><input name="name" type="text" /></td>
      </tr>
      <tr>
        <td>E-Mail Address</td>
        <td><input name="email" type="text" /></td>
      </tr>
      <tr>
        <td>Desired Username</td>
        <td><input name="username" type="text" /></td>
      </tr>
      <tr>
        <td>Desired Password</td>
        <td><input name="password" type="password" /></td>
      </tr>
    </table><input name="submit" type="submit" />
    <input type="hidden" name="MM_insert" value="form1" />
    </p></form></td>
      </tr>
    </table>
      <!-- InstanceEndEditable -->
    </div>
    <div class="bottom"></div>
    </div>
         <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --> <br class="clearfloat" />
      <div id="footer">
        <p align="center">&copy; Copyright 2009 Hondo Volunteer Fire Department | <a href="mailto:[email protected]">Contact Us</a><a href="http://www.legalhelpers.com/chapter-13-bankruptcy/chapter13.html"></a><br />Hosting provided by <a href="http://studiox.com/" target="_blank">Studio X</a></p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>
    Dreamweaver also created this file:  hondovfd.php
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_hondovfd = "localhost";
    $database_hondovfd = "hondovfd_org";
    $username_hondovfd = "silver";
    $password_hondovfd = "m3d1c4u2c";
    $hondovfd = mysql_pconnect($hostname_hondovfd, $username_hondovfd, $password_hondovfd) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>

  • Error says: Warning: Cannot modify header information

    I keep receiving an error message after my form is sent (the form still send the information I need just wont re-direct to the next page)
    It redirects to a page that says:
    Warning: Cannot modify header information - headers already sent by (output started at /home/tommyle/public_html/newp.php:10) in /home/tommyle/public_html/newp.php on line 41
    my php code looks like this:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Tommy Lemonade Beta</title>
    <link href="style1.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <?php
    /* Set e-mail recipient */
    $myemail = "profiles@tommylemonade";
    /* Check all form inputs using check_input function */
    $name = check_input($_POST['name'], "Enter your name");
    $subject = check_input($_POST['subject'], "Enter a subject");
    $email = check_input($_POST['email']);
    $message = check_input($_POST['message'], "Write your message");
    /* If e-mail is not valid show error message */
    if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
    show_error("E-mail address not valid");
    /* Let's prepare the message for the e-mail */
    $message = "
    Name: $name
    E-mail: $email
    Subject: $subject
    Message:
    $message
    /* Send the message using mail() function */
    mail($myemail, $subject, $message);
    /* Redirect visitor to the thank you page */
    header('Location: thanks.html');
    exit();
    /* Functions we used */
    function check_input($data, $problem='')
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    if ($problem && strlen($data) == 0)
    show_error($problem);
    return $data;
    function show_error($myError)
    ?>
    <html>
    <body>
    <p>Please correct the following error:</p>
    <strong><?php echo $myError; ?></strong>
    <p>Hit the back button and try again</p>
    </body>
    </html>
    <?php
    exit();
    ?>
    </body>
    </html>
    This is line 41:
    header('Location: thanks.html');
    Can anybody see what I'm missing?

    Yeah, rework the code so you don't get any output before the php code is executed (like below):
    <?php
    /* Set e-mail recipient */
    $myemail = "profiles@tommylemonade";
    /* Check all form inputs using check_input function */
    $name = check_input($_POST['name'], "Enter your name");
    $subject = check_input($_POST['subject'], "Enter a subject");
    $email = check_input($_POST['email']);
    $message = check_input($_POST['message'], "Write your message");
    /* If e-mail is not valid show error message */
    if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
    show_error("E-mail address not valid");
    /* Let's prepare the message for the e-mail */
    $message = "
    Name: $name
    E-mail: $email
    Subject: $subject
    Message: $message
    /* Send the message using mail() function */
    mail($myemail, $subject, $message);
    /* Redirect visitor to the thank you page */
    header('Location: thanks.html');
    exit();
    /* Functions we used */
    function check_input($data, $problem='')
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    if ($problem && strlen($data) == 0)
    show_error($problem);
    return $data;
    function show_error($myError)
    ?>
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Tommy Lemonade Beta</title>
    <link href="style1.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <p>Please correct the following error:</p>
    <strong><?php echo $myError; ?></strong>
    <p>Hit the back button and try again</p>
    </body>
    </html>
    <?php
    exit();
    ?>

  • Heading style customizations not reflected in HTML Help file

    I wanted to share a solution I found for a problem with heading styles. I am using RoboHelp 9 for Word with Office 2010 and generating an HTMLHelp .chm file. When I migrated from Office 2003 to 2010 and RoboHelp 8 to 9, I customized the RoboHelp.docm template file to change the heading styles to have an orange border line over the header. (I had made the customizations in RH 8 for Word, but couldn't transfer the customization to the new template, so I did it by hand). The border line came out black in the header file in most of my topics in the .chm help file. I found one Word doc had topics with the orange line displayed correctly in the help and discovered that that heading style had Style Type = Linked, so I went to each of my Word docs and changed my Heading 1 style to use that style type and it fixed it for all my heading styles.
    In Word 2010, you can change this from the Home tab, Styles ribbon. Rt-click on the Heading 1 style and choose Modify. In the Modify Style dialog set Style type to Linked (paragraph and character).

    Thanks for sharing!
    Greet,
    Willam

  • Warning: Cannot modify header information

    Hi,
    When I submit a form I get
    Warning: Cannot modify header information - headers already sent by (output started at /home/aiop/public_html/events/registerEventWA.php:4) in /home/aiop/public_html/includes/common/KT_functions.inc.php on line 464
    I know this usually means i have a space either before the

    I have encountered that a few times, and always figured it out, it fixed itself, or, some other standard task remedied it, unknowingly to me.
    my mantra: I'm no guru!
    but ive seen this a few times and cant remember much details.
    I'm thinking it may have came once with SSI situations. Or it may have been something with improper syntax in my connection file. Sorry that's not a LOT of help, but i'll be lookin out and if i see it again soon, and / or if i remember the cause / remedy, i'll post.
    Best,
    ben blue

  • ThinkPad Bluetooth Sees Other BT Objects, but Won't See My BT Mouse

    My ThinkPad T420S Bluetooth is happily paired with my BT Printer and with a ThinkPad Bluetooth Mouse.  It will also "see" my BlueTooth phone when I make the phone's BT discoverable.  When I tried to pair it with a new Lenovo BT Mouse or with a new Targus Bluetooth Comfort Laser Mouse by using Bluetooth's "Add Device" Box, however, neither mouse would appear in the "Add Device" box.
    I have a ThinkPad 420S, Windows 7, 64 bit, Microsoft Bluetooth Enumerator (driver version 6.1.7601.17889) and ThinkPad Bluetooth 3.0 (driver version 6.5.1.4500).  The Device Manager says that my Bluetooth is working properly.
    When my ThinkPad failed to "see" a new Lenovo ThinkPad Laser Mouse, I assumed that the new mouse must be faulty and returned it.  But now that it won't see a new Targus BT Comfort Laser Mouse, either, I'm puzzled.  In both cases, the mice had new batteries.
    What baffles me is that my ThinkPad's bluetooth can see other discoverable BT devices -- including my old Lenovo BT Laser Mouse, which I was trying to replace because the left button has started to get temperamental.
    Puzzling, no?  Any suggestions?

    Upon further research I have learned that A2DP is not supported with any OSX 10.4.11. I think using Jack might be as close as I can get.

  • Extension Manager won't See My products?

    Hello,
    I am running windows 7 64bit and have the CS5 Master suite. Due to low disk space I installed the suite on an external drive which the computer saw as (I) Later I installed a Card reader and it changed all my drive letters, so now the hard drive is seen as (L). For awhile a was able to use Photoshop or any of the programs until I figured out how to change the path in properties to go to the (L) Drive instead of looking for a non existant (I).
    Now I can open the products, but the Extension manager won't see them at all and when I try to install a new purchase or download I get this: http://prntscr.com/spmmq and this is the version I am using http://prntscr.com/spn0a, I do have CS6 as well, but it crashes 2-3 times a day from random things and I have a lot of stuff my photoshop has to load, so it takes almost 1.5 hours to get back up after a crash.. grrr!!!
    I tried downloading CS5 Extension manager to reinstall it, but when I did that it was forcing the installation the the non existant drive (I) I couldn't change the path and when I went to unistall the Extension Manager, there was no option for it to be removed??
    So the question is... is there a way to have my extension manager find the products on the (L) drive???
    Thank you for any help,
    J

    using the Microsoft BlueTooth driver is a requirement for Desktop Manager, not an issue. Please read task 2 of the following article from the public knowledge base:
    KB04132 How to set up Bluetooth connectivity between a BlackBerry smartphone and BlackBerry Desktop Software
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • My wife and I have shared one iTunes account for 6  years.  We want to create our own Apple IDs, so when we sync to our new iMac we won't see each others contacts, photos, calendar, music, etc.  Is there a way to move music/apps from one ID to a new ID?

    My wife and I have shared one iTunes account for 6  years.  We want to create our own Apple IDs, so when we sync to our new iMac we won't see each others contacts, photos, calendar, music, etc.  Is there a way to move music/apps from one ID to a new ID?

    JoeyV325 wrote:
    Is there a way to move music/apps from one ID to a new ID?
    No.
    One of you create a new AppleID and one use the existing AppleID.
    But you can still use the items in each iTunes library.
    Create separate computer logins for each of you.
    This will give you each your own data. Contacts, calendars, photos, etc. (and your own iTunes library).

  • Mac Mini - Core Solo - Won't See Any Wireless network

    I have a Mac Mini, first gen Intel, Core Solo, that won't see any wireless networks. However, it will see my extreme basestation, and my two airport express devices over bonjour, which makes me think that the wireless device is working.
    I've reset the PMU, with no luck.
    Any suggestions?

    Does an Airport card show in the system profiler?
    Is Airport switched on in your mini - the Airport icon in the menu bar should show at least grey bars rather than an empty white 'fan' shape?
    With Airport on, when you click on the Airport icon, does it show any network?
    If you click on 'Join Other Network' and type the name of the wifi network you run, what error message does the system give?
    How far away from the wifi base station is the mini? What kind of structures and environment is it in?
    If you move the mini to be in close proximity to the wifi base station, does it show any signal?
    When you download a copy of AP Grapher (http://www.chimoosoft.com/apgrapher.html) and run it, what does it show for signals, noise etc?
    How is the mini seeing any wifi devices via Bonjour - do you have it wired into your network? If so, the fact that the devices appear via bonjour doesn't mean they are transmitting wifi, nor that they are in range.
    By the way, the Core Solo mini doesn't have a PMU to reset. If you used the PMU reset procedure it won't have helped, and may actually have caused problems. The correct procedure for an Intel-based mini is an SMC reset, as follows:
    -From the Apple menu, choose Shut Down (or if the computer is not responding, hold the power button until it turns off).
    -Unplug all cables from the computer, including the power cord and any display cables.
    -Wait at least 15 seconds.
    -Plug the power cord back in, *making sure the power button is not being pressed* at the time.
    -Then reconnect your keyboard and mouse to the computer.
    -Press the power button on the back to start up your computer.

  • Mac Book Pro won't see my iTunes Library on an external drive

    I have a brand new Mac Book Pro and my iTunes Library is on an external drive.  My computer won't see this Library even if I change the location under Preferences.  All I can see are my purchases from the iTunes Store on my iCloud.  I don't want to clutter up my MBP with my iTunes Library so what should I do?
    I'm running Yosemite and latest iTunes
    Thanks for any help
    Les

    Really a library, or just media?  A library is a complete collection of files an folders including the critical iTunes Library.itl file, generally all enclosed in an "iTunes" folder.  You do not direct iTunes to open a library with preferences, you do it by holding down the option/alt key while starting iTunes and guiding it to the .itl file you wish it to use.

  • IMac won't see HDD, no matter what I do - Please help!!!!

    Hi,
    I have a 2009 iMac 24in (4GB RAM, 500GB 7200rpm) and ever since I upgraded to Snow Leopard, I have one problem after another. I have erased the HDD on numerous occasions, 7 and 35pass, due to it not seeing the HDD, have tested (iDisk) the HDD and all seems fine, reset PRAM & SMC, tried safe mode etc, but nothing seems to work.
    It will boot from CD, but every time I try to install, it won't see the HDD. I have tried connect via Firewire to another Mac, but only on one occasion was the HDD seen; that said, I was able to retrieve data, so at least that's one saving grace.
    It's still under warranty, so I'll be taking it to Apple and dumping it on them, but given that I cannot afford to buy another Mac to replace this one, I was hoping that someone could give me a few pointers to getting this going, whilst my MacBook Pro is being sorted out.
    Yes, I have two Macs in trouble (MBP has black screen), but I need one working for business use, whilst the other is being sorted out.
    I really hope that someone can help me with this one, as I'm pulling my hair out!!
    Thanks in advance.

    Hi,
    There's no doubting the cost per GB, particularly from Apple, but would I be wrong to assume that my overall user experience would not be better with SSD, than with HDD; taking cost to one side of course.
    I use my Macs for business and quite honestly, the downtime I have experienced is more costly than the extra cost per GB of an SSD.
    Appreciate that SSD technology is fairly new, but I work in the Film and TV industry and nearly every new camera with on-board recording is using SSD technology and I don't hear of many complaints or issues, as far as reliability and stability of the technology is concerned.
    I do accept that an SSD in a computer is going to be doing a helluva lot more work, but the technology has to be better right?
    Ultimately, am I making a good move or another making another howler by opting for SSD over HDD?? I acknowledge that's very broad question and open to a lot of opinions/personal preferences etc, etc.
    Thanks.

  • TOC Won't Display in WinHelp

    I am updating a WinHelp project that was previously developed
    in X3 but which I am now trying to update and compile in RoboHelp 7
    for Word. The TOC won't display (i.e., the TOC navigation panel at
    the left doesn't display) when the help is launched. When viewing
    the TOC in the single panel window by clicking the Help Topics
    button, the links do work. There is a CNT file. I tried deleting
    the GID file (as suggested by Adobe), and using the old CNT file
    that worked in the previous version of the project. Anyone else
    experience this with RoboHelp 7?

    We're getting the same issue here. We compile - looks great. We copy the hlp and cnt files to another computer and the TOC disappears. We're using RoboHelp for Word and have been since v5. Can anyone help on this? All topics are there; links work, graphics great, but the Table of Contents has vanished.
    If I run the AutoGenerate TOC function, the TOC disappears completely from the system. Bear in mind, this is the same file we've been working from for the last 3 years and up until now has been working. We recently updated to v7 and upgraded again to v8 today.
    I really appreciate any guidance anyone can give.
    Kerry

Maybe you are looking for

  • Sound distortion problems, help p

    Hi I recently bought the Sound Blaster X-Fi Xtreme audio but i've been having problems with it. First of all i installed the sound card. Then when turning computer back on i went into bios and disabled the audio function thats in the integrated perip

  • PFI line for counter and digital boolean input simultaneously

    Hi, I have a question concerning the digital I/O and the counter. I use a 6210 card for detecting a TTL signal. Physically I wire the TTL output of the device to the PFI0 port for the front counter (ctr0). Meanwhile, I use the same port (line0) for a

  • E71 Email Problems, Help Please!?

    Hiya, I changed ISP, and therefore had to change my email settings on my E71, I removed the old mailbox (plusnet) and entered the new details (BT Yahoo), When I restarted the phone it threw a complete "wobbler", (active screen went blank, phone acted

  • Tablespace/datafile droping error..

    HI guys, I am getting below error when trying to drop tablespace "PROD2".. drop TABLESPACE PROD2 including contents; The following error has occurred: ORA-01122: database file 56 failed verification check ORA-01110: data file 56: '/u02/oradata/EXPRES

  • Smart view from microsoft internet explorer

    I'm using internet explorer 6.0. Has anybody used smart view from internet explorer. If yes how to get the menu / addon