PHP - include content based on a page variable

Hello

I have a slight / and probably not so difficult) problem.

I have the index page that has content < div > < / div > area which shows included files as items etc Nothing unusual in that nope. On the side, there is a sidebar submenu < div > < / div > showing different things depending on whether you are connected etc. The question is how to display the side bars cover based on the current index shown in the content area.

For example, I do not wish to display the new tab in the sidebar with any other pages of the default folder include "welcome.php" to the index.php.

So should which way variable I set to file content unwanted on some pages?

Currently, I tried making it variable like $include_in_sidebar which is set to true on the content pages where I want to be 'the' option shown in the sidebar, and then inside if the statement inserted in the side bar around the specific part code I would like to have shown. Which is not the lap, so something (or many things) must be bad. Appreciated by all kinds of help and guidelines,

See you soon!

OK... it was actually pretty easy. How did I not understand before. I just applied show if region of the part, I wanted to make it visible only on certain pages and made the condition to search page include namevariables which should match the State... as - if (@$ _GET ['page'] == 'xxx') {}...

Feeling a little shame now, as I wandered through various places to learn this insignificant thing. The original question was probably too easy, so no one bothered answer: d... need to study more PHP manuals...

Tags: Dreamweaver

Similar Questions

  • PHP include command covers all other content of the page in dreamweaver

    Hello

    I have problems with my php include command.

    I aheader that must be on all pages, but when I include it in a page, it will stop to view the original content of the page.

    To be able to edit pages (not the header include file), I have to comment or remove the php include so that the original content is displayed and can be edited.

    Is there a reason for this?

    <! doctype html >

    <? PHP include ("_header.php");? >

    < html >

    < link href = "stylesheets/main_stylesheet.css" rel = "stylesheet" type = "text/css" > "

    < link href =' http://fonts.googleapis.com/CSS?family=slabo+27px ' rel = "stylesheet" type = "text/css" >

    < head >

    < meta charset = "utf-8" >

    < title > welcome < /title >

    < / head >

    < body >

    It's the body of this page

    < / body >

    < / html >

    Try this:

    Content of the file of the hand:

    It's the body of this page

    _header.php table of contents:


    Home

    Welcome, * username

    Profile

    Calendar

    ACS Egham International School

    Drama database

    ACS Egham International School

  • Can't get my (php include) foot to the bottom of the page!

    Hello

    I have a site where I've successfully added the using the header <? PHP include()? >

    I added the <? PHP include()? > tag at the end of my content on the homepage, but it either sticks in the middle of the page that you highlight, or change position (in css) crazy.

    I don't want the footer to include in the class content that's a 800px width. I want that my footer to 100% width at the bottom of the page

    Here's my footer.php:

    <! - start .footer - >

    < link href = "stylesheets/footer.css" rel = "stylesheet" type = "text/css" > "

    < div class = "footer" >

    < br / >

    < table class = "footer" width = "100%" border = "0" >

    < b >

    < td width = "33%" colspan = "3" > < a style = "" color: #CBCBCB "href="main/feedback/feedback.php "> < /a > comment | < a style = "" color: #CBCBCB "href="main/contact/contact.php "> < /a > Contact | < a style = "" color: #CBCBCB "href =" http://eepurl.com/WtSur "> newsletter < /a > |" " < a style = "" color: #CBCBCB "href="main/donate/donate.html "> < /a > gift | < a style = "" color: #CBCBCB ' href = "Files/Terms and Conditions.pdf" > terms and Conditions < /a > < table > "

    < /tr >

    < b >

    < td colspan = "3" > < table >

    < /tr >

    < tr valign = "bottom" >

    < td width = "33 percent" height = "60" >

    <! - PayPal Logo - >

    " < a href =" https://www.PayPal.com/UK/webapps/MPP/PayPal-popup "title ="How PayPal"onClick =" javascript:window.open ('https://www.paypal.com/uk/webapps/mpp/paypal-popup ',' WIPaypal ',' toolbar = no, location = no, directories = no, status = no, menubar = no, scrollbars = yes, resizable = yes, width = 1060, height = 700'); return false; "" > < img src = "https://www.paypalobjects.com/webstatic/mktg/logo/bdg_secured_by_pp_2line.png" border = '0' alt = 'Secured by PayPal' > < /a > < div style = "text-align: Center" > < / div > "

    <! - PayPal Logo - >

    < table >

    < td width = "33%" > < img src = "images/mdjn - logo.png" width = "175" height = "58" / > < br / > < table >

    " < td width ="33% "> < div align ="center"> < a target ="_blank"href =" " https://www.Facebook.com/pages/DJ-direct/179634702105699?Ref=HL " > < img src = images/Facebook.png"" width = "40" height = "40" alt = "facebook" / > < /a > < a target = "_blank" href = " http://plus.google.com/102808919725916371065 " > < img src = "images/Google +.png" width = "40" height = "40" alt = "google +" / > < / has > < / div > < table > .

    < /tr >

    < /table >

    & copy; DJ-live 2014 < br / >

    < / div >

    <! - end .footer - >

    Here is the CSS for the footer:

    @charset "utf-8";

    / * CSS document * /.

    .footer {}

    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;

    background-color: #2E2E2E;

    color: #A4A4A4;

    text-align: center;

    Width: 100%;

    position: absolute;

    }

    And finally, here is the page I'm trying to add the footer (include) on:

    <! doctype html >

    < html >

    < head >

    < meta charset = "utf-8" >

    < title > welcome < /title >

    < style type = "text/css" >

    {body

    margin: 0;

    padding: 0;

    background-color: #3e3e40;

    position: relative;

    }

    . Happy {}

    Width: 800px;

    height: 120px;

    margin: 0 auto;

    }

    .title {}

    color: white;

    do-family: Verdana, Geneva, without serif.

    text-align: center;

    do-size: 18px;

    Police-weight: 600;

    padding-bottom: 10px;

    }

    . Text {}

    color: white;

    do-family: Verdana, Geneva, without serif.

    text-align: center;

    padding: 10px;

    }

    {.testimonial}

    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;

    color: #FFF;

    background-color: #575757;

    text-align: left;

    margin-top: 0px;

    margin-bottom: 20px;

    padding: 20px;

    }

    < / style >

    < link href = "stylesheets/header.css" rel = "stylesheet" type = "text/css" > "

    < link href = "stylesheets/footer.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body >

    <? PHP include ("_header.php");? >

    < div class = "content" >

    < iframe width = "800" height = "180" src = "" / / www.cincopa.com/media-platform/iframe.aspx?fid=AcGA1sssNofx "frameborder ="0"scrolling allowfullscreen =" "style =" padding-top: 20px; "> < / iframe >

    < div class = "title" >

    At DJ-Direct, we are proud to provide the best service at an affordable price.

    < / div >

    < div class = "text" >

    When you want to organize an important occasion in your life, he must go to a perfect plan. If personal or professional wedding, or a corporate function, of such events memorable, nothing can be left to chance. It is cost-effective to book experts.

    < br > < br >

    Our entertainment, sent through professional DJs, mixing high range and equipment lighting and sound high definition made for a truly spectacular evening.

    < br > < br >

    Our DJs have a large amount of musical experience to create the atmosphere and feeling of any event.

    < br > < br >

    We provide professional shows of lighting and atmospheric effects to give your event that "WOW" factor If you need a great dramatic sountrack'u energy for a 21 or a wedding with lighting and sound for you.

    < br > < br >

    Move forward us and provide a tailored solution.

    < / div >

    < div style = "padding-top: 20px;" padding-bottom: 20px; "> < img src =" images/split.jpg"width ="800"height ="20"> < / div >"

    < div class = "title" > testimonials < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < strong > Oxfam - charity event < facilities > < br / > "

    < em > The Old Queens Head < /em > < table >

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; Without DJ-live, the atmosphere at our charity concert would be the same. With so many different acts of different styles, we couldn't be happier to have the variation of lighting to set the modd. More than 100 paying spectators came to follow the event while he was absolutely necessary to have a professional lighting to ensure the night success. & quot; < br / >

    -Krishna Harilela < table >

    < /tr >

    < /table >

    < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < strong > New Years Eve < facilities > < br / > "

    < em > Planet Hollywood < /em > < table >

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; I just wanted to say what a fantastic job DJ-live has done with the lighting of our Boogie Nights New Years Eve party at Planet Hollywood in London.   They were extremely professional throughout the implementation and in the evening.   They had three different styles of lighting based on three different areas of our restaurant at night. One for the dance floor, one for the bar and one for the dining room and he got the lighting on in each place. We hold many different styles of events at Planet Hollywood and would certainly use DJ-live again. Thanks again and I hope that we will work with you again in a near future & quot; < br / >

    -Alex Garland < table >

    < /tr >

    < /table >

    < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < project strong Kenya > < / strong > < br / > "

    < em > < table > < /em > ACS-Egham international school

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; I was very impressed by the professionalism and technical expertise displayed by DJ-live to dance school. All students truly enjoyed music and features of the setting up of DJ - machine smoke and "lasers" were very popular! A big thanks to DJ-live for their work hard to do such a dance success & quot; < br / >

    -Hazel Caroline < table >

    < /tr >

    < /table >

    < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < strong > Christmas party < facilities > < br / > "

    < em > Stoke Park < /em > < table >

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; I just want to thank DJ-live to support our event. We organized a Christmas party for various companies, and the feedback we received on the DJ was exceptional! They have set up in the ballroom and played fantastic music and their lighting all brought everyone to the dance floor. I will personally make sure to book DJ-live again for our event next Christmas. Thanks DJ-live! & quot; < br / >

    -Hendricks < table >

    < /tr >

    < /table >

    < / div >

    < / div >

    <? PHP include ("_footer.php");? >

    < / body >

    < / html >

    Thanks for any help!

    Max Resnikoff says:

    Now it's just stuck at the bottom of the browser window, not the Web page

    So where in fact do you want to go? If you want to follow the rest of the content of the page then don't add any positioning to the css:

    .footer {}

    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;

    background-color: #2E2E2E;

    color: #A4A4A4;

    text-align: center;

    Width: 100%;

    }

    And to get rid of the stupid stupid content height: 120px - what you expect the footer to do if you define stupid things like that?

    . Happy {}

    Width: 800px;

    height: 120px;

    margin: 0 auto;

    }

  • PHP includes the file is not read.

    I made a php include file that contains all of the generic actions mail processing script.  When I deploy my page contact form with appropriately updated code and linking using the include() function code and then provide a path to the file, it does not work.  The end result is that I get an email to my account that I put in place must be sent to me as an alert if there is a problem reading the include file.  I'll give you the coding for the include file and the feedback form page:

    Include a file code:

    <? PHP
    If (isset($_SERVER['SCRIPT_NAME']) & & strpos ($_SERVER ['SCRIPT_NAME'],))
    Inc.php')) "exit";
    Remove characters from exhaust AFTER table
    If (via PHP_VERSION < 6 & & get_magic_quotes_gpc()) {}
    function stripslashes_deep ($value) {}
    $value = is_array ($value)? array_map ('stripslashes_deep', $value): stripslashes ($value);
    return $value;
    }
    $_POST = array_map ('stripslashes_deep', $_POST);
    }
    Suppose that there is nothing suspicious
    $suspect = false;

    create a model to identify suspicious phrases
    $pattern = ' / content-Type. Bcc. Cc: / I ';

    function to check suspicious phrases
    function isSuspect ($val, $pattern and $suspect) {}
    If the variable is an array, loop through each element
    and pass it to the same function recursively
    If (is_array ($val)) {}
    {foreach ($val as $item)
    isSuspect ($item, $pattern, $suspect);
    }
    }
    else {}
    If one of the suspicious phrases is found, the Boolean true value
    If (preg_match ($pattern, $val)) {}
    $suspect = true;
    }
    }
    }

    Check the array $_POST and suspicious content subdashboards
    isSuspect ($_POST, $pattern, $suspect);
    If (! empty($_POST['url'])) {}
    $suspect = true;
    }
    If {($suspect)
    $mailSent = false;
    unset ($missing);
    } else {}
    treat the variables of $_POST
    foreach ($_POST as $key = > $value) {}
    assign a temporary variable and strip space if this isn't a table
    $temp = is_array ($value)? $value: trim ($value);
    so empty and if necessary, add to the $missing table
    If (empty ($temp) & & in_array ($key, $required)) {}
    return ($manquant, $key);
    } else if (in_array ($key, $expected)) {}
    Otherwise, assign to a variable of the same name as $key
    ${$key} = $temp;
    }
    }
    }

    validate email address
    If (! empty ($email)) {}
    Regex to identify illegal characters in the e-mail address
    $checkEmail = ' / ^ [^ @] + @[^ \s\r\n\'";,@%]+$/';]
    reject the e-mail address, if it does not
    If (! preg_match ($checkEmail, $email)) {}
    $suspect = true;
    $mailSent = false;
    unset ($missing);
    }
    }

    go forward only if all OK required fields
    If (! $suspect & & empty ($missing)) {}
    Initialize the variable $message
    $message = ";
    loop in the $expected table
    {foreach ($expected as $item)
    assign the value of the current item to $val
    If (isset(${$item}) & &! empty(${$item})) {}
    $val = ${$item};
    } else {}
    If she has no value, set "not chosen".
    $val = "not sΘlectionnΘe";
    }
    If a table, expand under chain comma-gap
    If (is_array ($val)) {}
    $val = implode (', ', $val);
    }
    Add the label and value to the message body
    $message. = ucfirst ($item). ' ': $val\r\n\r\n ";
    }

    the length of the line is limited to 70 characters
    $message = wordwrap ($message, 70);

    Create the Reply-To header
    If (! empty ($email)) {}
    $headers. = "\r\nReply-To: $email";
    }

    Send it
    $mailSent = mail ($ $subject, $message, $headers);
    If {($mailSent)
    $missing is more necessary if the email is sent, so unplugged it
    unset ($missing); ECHO ('please contact Solutions Web common wealth');
    }
    }
    ? >
    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < title > Untitled Document < /title >
    < / head >
    < body >
    < / body >
    < / html >

    Code of the feedback form page (with the code include line, note the path of the file that I used.  I do indeed follow the include file; process_mail. Inc.php in a folder include in the main public_html directory.  It should work.  "Maybe there is somethiing wrong with my code?) :

    <? PHP
    If (array_key_exists ('Send', $_POST)) {}
    mail processing script
        $to = ' [email protected] '; / / use your own e-mail address
    $subject = "contact form investigation."

    list fields should
    $expected is array ('name', 'email', 'phone', 'Comments');.
    Set required fields
    $required = array ('name', 'email', 'Comments');
    create an empty array for all the missing fields
    $missing = array();
    create additional headers
    $headers = "from: Caleb Wright < . " [email protected] > \r\n";
    $headers. = "content-Type: text/plain;" charset = utf-8\r\n ";
    $headers. = "cc: " [email protected] '; 
    If (! empty ($email)) {}
    $headers. = "\r\nReply-To: $email";
    }
    $process = '.. / includes/process_mail. Inc.php';
    If (file_exists ($process) & & is_readable ($process)) {}
    include ($process);
    } else {}
    $mailSent = false;
    mail ("$ ' server problem","$process cannot be read", $headers);
    }
    }
    ? >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < name meta = "description" content = "" Common Wealth Web Solutions: Web development, Graphic Design, Media Consultant, Community Engagement "/ >"
    < name meta = "keywords" content = "' Common, wealth, Web, Design, graphic design, development, interactivity, services, fla sh, php, javascript, ajax, professional Solution, Caleb Wright, Peter Wallis, artist, video, multimedia, production, search engine optimization, SEO, video production design" / > "
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < title > Common Wealth Web Solutions: < /title > Contact form
    < link href = "stylesMain.css" rel = "stylesheet" type = "text/css" / > "
    <!-[if lt IE 7] >
    < link rel = "stylesheet" type = "text/css" href = "PNGfix.css" / > "
    <! [endif]-->
    <!-[if lte IE 7] >
    < style type = "text/css" >
    #hornav ul li {padding: 0 0 0 10px ;}}
    < / style >
    <! [endif]-->
    <!-[if lte IE 6] >
    < style type = "text/css" >
    #wrapper - body, #wrapper - 1, #wrapper-2, #wrapper - 3 {height: 1% ;}}
    < / style >
    <! [endif]-->
    < script type = "text/javascript" src = "scripts.js" > < / script >
    < script src = "Scripts/swfobject_modified.js" type = "text/javascript" > < / script > "
    < script src = "SpryAssets/SpryAccordion.js" type = "text/javascript" > < / script > "
    < style type = "text/css" >
    {#apDiv1}
    position: absolute;
    Width: 1844px;
    height: 43px;
    z-index: 1;
    left: 64px;
    top: 253px;
    }
    {body
    background-color: #FFF;
    }
    < / style >
    < link href = "SpryAssets/SpryAccordion_flexible.css" rel = "stylesheet" type = "text/css" / > "
    < style type = "text/css" >
    a: link {}
    Color: #00F;
    }
    < / style >
    < link href = "contact.css" rel = "stylesheet" type = "text/css" / > "
    < script type = "text/javascript" >

    var _gaq = _gaq. [];
    _gaq.push (['_setAccount ', 'UA-3119473-5']);
    _gaq.push (['_setDomainName ', 'none']);
    _gaq.push (["_setAllowLinker", true]);
    _gaq.push (['_trackPageview ']);

    (function() {}
    GA var = document.createElement ('script'); GA.type = ' text/javascript '; GA. Async = true;
    ga.src = ("https:" == document.location.protocol? ) https://SSL ' : ' http://www ( ') + «.google-analytics.com/ga.js ";
    var s = document.getElementsByTagName ('script') [0]; ParentNode.InsertBefore (ga, s);
    })();

    < /script >
    < script type = "text/javascript" >

    var _gaq = _gaq. [];
    _gaq.push (['_setAccount ', 'UA-3119473-6']);
    _gaq.push (['_setDomainName ', 'none']);
    _gaq.push (["_setAllowLinker", true]);
    _gaq.push (['_trackPageview ']);

    (function() {}
    GA var = document.createElement ('script'); GA.type = ' text/javascript '; GA. Async = true;
    ga.src = ("https:" == document.location.protocol? ) https://SSL ' : ' http://www ( ') + «.google-analytics.com/ga.js ";
    var s = document.getElementsByTagName ('script') [0]; ParentNode.InsertBefore (ga, s);
    })();

    < /script >
    < / head >
    < body >
    < div id = "wrapper" body >
    < div id = "wrapper-1" >
    < div id = "branding" >
    < h1 >
    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "700" height = "250" id = 'FlashID' title = "Common Wealth banniΦre" > "
    < param name = "movie" value = "commonwealthbanner.swf" / > "
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->
    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "
    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->
    <!-[if! IE] >->
    < object type = "application/x-shockwave-flash" data = "commonwealthbanner.swf" width = "700" height = "250" > "
    <!-<! [endif]-->
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "
    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->
    < div >
    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >
    " < p > < a href =" http://www.Adobe.com/go/getflashplayer_fr "> < img src = ' http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif "alt = 'Get Adobe Flash player' width = '112' height ="33"/ > < /a > < /p > "
    < / div >
    <!-[if! IE] >->
    < / object >
    <!-<! [endif]-->
    < / object >
    < / h1 >
    < div > < / div >
    < / div >
    < div id = "wrapper-2" >
    < div id = "top content" class = "png" > < / div >
    < div id = "wrapper-3" >
    < div id = "content-1" >
    < div class = "content wrap" >
    < div id = "Accordion1" class = "Accordion" tabindex = "0" >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > Site Navigation < / div >
    < div class = "AccordionPanelContent" > < a href = "index.php" > Mission < /a > < / div > ""
    < / div >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > Services < / div >
    < div class = "AccordionPanelContent" >
    < p > < a href = "Services_Web Design.php" title = "Home" > Web Design < /a > < /p >
    < p > < a href = 'Design.php of Production' video > video Production Design < /a > < /p >
    < p > < a href = "SEO.php ' > Search Engine Optimization < /a > < /p >" "
    < / div >
    < / div >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > about us < / div >
    < div class = "AccordionPanelContent" >
    < p > < a href = "AboutCaleb.php" > Caleb Wright < /a > < /p > ""
    < p > Coming Soon... < /p >
    < /P > < p > Peter Wallis
    < / div >
    < / div >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > Contact < / div >
    < div class = "AccordionPanelContent" >
    < p > < a href = "Contact Form.php" > form < /a > < /p >
    < / div >
    < / div >
    < / div >
    < p > < / p >
    < / div >
    < / div >
    < div id = "content-2" >
    < div class = "content wrap" >
    Contact us < h1 > < / h1 >
    <? PHP
    If ($_POST & & isset ($missing) & &! empty ($missing)) {}
    ? >
    < class p = 'WARNING' > please fill in the missing elements indicated. < /p >
    <? PHP
    } else if ($_POST & &! $mailSent) {}
    ? >
    < p > < strong > your message has been sent. Thanks for choosing Web Solutions common wealth.
    < facilities > < / p >
    <? PHP}? >
    < p > < / p >
    < form action = "<?" PHP echo $_SERVER ['PHP_SELF'];? ">" method = "post" name = 'Contact us' class = "content-wrap" id = "contact us" >
    < fieldset > < class legend = "AccordionPanelContent" > contact information < / legend > < p >
    < label for = "name" > < span class = "fieldname" > name: </span >
    <? PHP
    If (isset ($missing) & & in_array ('name', $missing)) {? >}
    < span class = "WARNING" > please enter your name < span > <? PHP}? >
    < / label >
    < label for = "name" > < / label >
    < span id = "sprytextfield1" >
    < input name = "name" type = "text" class = "textInput" id = 'name '.
    <? PHP if (isset ($missing)) {}
    "' echo ' value =" ".htmlentities ($_POST ['name'], ENT_COMPAT, ' UTF - 8' UTF - 8') .e. '" ';
    } ? >
    / >
    </span > < / p >
    < class p 'fieldname' = >
    < label for = "email" > Email:? PHP
    If (isset ($missing) & & in_array ('email', $missing)) {? >}
    < span class = "WARNING" > enter your e-mail < span > <? PHP}? >
    < / label >
    < input name = "email" type = "text" class = "textInput" id = "email".
    <? PHP if (isset ($missing)) {}
    "' echo ' value =" ".htmlentities ($_POST ['email'], ENT_COMPAT, ' UTF - 8' UTF - 8') .e. '" ';
    } ? >
    / >
    < /p >
    < p >
    < label class "phone" = "fieldname" = > phone: < br / >
    < / label >

    < input name = "phone" type = "text" class = "textInput" id = "phone".
    <? PHP if (isset ($missing)) {}
    "' echo ' value =" ".htmlentities ($_POST ['Telephone'], ENT_COMPAT, ' UTF - 8' UTF - 8') .e. '" ';
    } ? >
    / >
    < /p >
    < / fieldset >
    < p > < / p >
    < fieldset >
    < class = "AccordionPanelContent" legend > how can we help you? < / legend >
    < label for 'Comments' = > < br / >
    <? PHP
    If (isset ($missing) & & in_array ('Comments', $missing)) {? >}
    Please enter your feedback < span > <? PHP}? >
    < / label >
    < = 'comments' id = cols 'comments' textarea name = "100" rows = "5" > <? PHP
    If (isset ($missing)) {}
    echo htmlentities ($_POST ['comment'] ", ENT_COMPAT, ' UTF-8 ');
    } ? > < / textarea >
    < /p >

    < p >
    < input type = "submit" name = "send" id = "send" value = "Send comments" / >
    < /p >
    < id p = "website" >
    website < label = 'url' >: < / label >
    < /p >
    < / make >
    < / div >
    < / div >
    < div id = "content-bottom" > < / div >
    < / div >
    < div id = "footer" >
    < p > < strong > common wealth Web Solutions < facilities >
    < script type = "text/javascript" >
    <!--
    applesearch.init ();
    ->
    < /script > < strong > © 2011 < facilities > < / p >
    < / div >
    < / div >
    < / div >
    < / div >
    < script type = "text/javascript" >
    var Accordion1 = new Spry.Widget.Accordion ("Accordion1", {useFixedPanelHeights: false, defaultPanel:-1});
    < /script >
    < / body >
    < / html >

    The code immediately preceding is the code with php feedback form page.

    Since your email is a failure I will assume the rest of your script works.  I'm looking specifically at these lines:

      $process = '../includes/process_mail.inc.php';
        if (file_exists($process) && is_readable($process)) {
            include($process);
    

    Things that must be confirmed here are that the path is right and it has the appropriate permissions.  Have you tried to delete this statement 'and' in your 'if' and see if those who operate independently.  I have a feeling that if the path is right that the file does not have the appropriate permissions on your server for access global read which would, "is_readable" fail and thus put an end to your script.

    Can you test those and after return?

  • PHP includes does not - can anyone offer advice?

    I am trying to register a .php in an .php

    It works on all my other files, just not this one.

    and the result is that it does not display the contents of the .php file.

    Under Style Ram VTL

    line include "sheet001.php."

    I am new to this, and I'm totally frustrated

    See highlighted in red below.

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml"XML: lang ="FR"lang ="FR"dir ="ltr">"
    "< profile head ="http://gmpg.org/xfn/11">."
    < title > Kira America | Products < /title >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    < meta http-equiv = "imagetoolbar" content = "no" / >
    "< link rel ="stylesheet"href="/styles/layout.css "type =" text/css"/ >
    <!--2 column added to the Page and not the Layout.css-> Stylesheet
    "< link rel ="stylesheet"href="/styles/2_column.css "type =" text/css"/ >
    "< link rel ="stylesheet"href="/menus/ajxmenu.css "type =" text/css"/ >
    < link href = "" / default.css "rel ="stylesheet"type =" text/css"/ >"
    "< script src="/menus/ajxmenu.js "type =" text/javascript"> < / script >
    < / head >
    < id body = "top" >
    < div class = "row1 wrapper" >
    <? PHP include 'headnav.php '? >
    < / div >
    <!-- ######################################################################################### ############## -->
    < DIV id = "topnav2" >
    <? PHP include 'topnav.php '? >
    < / DIV >
    <!-- ######################################################################################### ############## -->
    < div class = 'wrapper row3' >
    < div class = "rnd" >
    < div id = "container" class = 'clear' >
    <!-- ######################################################################################### ############## -->
    < div id = "left_column" >
    < DIV id = "lnav" >
    < div id = "content" >
    < h1 class = "title" > Ram Style VTL < / h1 >
    <? PHP include 'sheet001.php '? >
    < / div >
    < / DIV >
    < / div >
    <!-- ############ -->
    <!-- ############ -->
    <!-- ######################################################################################### ############## -->
    < / div >
    < / div >
    < / div >
    <!-- ######################################################################################### ############## -->
    < div class = 'wrapper row4' >
    <? PHP include 'footer.php '? >
    < / div >
    <!-- ######################################################################################### ############## -->
    < / div >
    < / div >
    < / div >
    <!-- ######################################################################################### ############## -->

    <! - LeadFormix - >
    "< a href ="https://www.leadformix.com"title ="Marketing Automation"onclick =" window.open (this.href); return (false); ">
    < script type = "text/javascript" >
    var (("https:" == document.location.protocol) = pkBaseURL? ' ") https://Vlog.leadformix.com/":"https://vlog.leadformix.com/");"
    <!--
    bf_action_name = ";
    bf_idsite = 8509;
    bf_url = pkBaseURL + ' bf/bf.php';
    (function() {}
    LFH var = document.createElement ('script'); LFH.type = ' text/javascript '; LFH. Async = true;
    LFH. SRC = pkBaseURL +' bf/lfx.js;
    var s = document.getElementsByTagName ('head') [0]; s.appendChild (lfh);
    })();
    ->
    < /script >
    "< noscript > < p > Marketing Automation Platform < img src ="https://vlog.leadformix.com/bf/bf.php"style =" border: 0 "alt ="Marketing Automation Tool"/ > < / p >"
    < / noscript >
    < /a >
    <!-/-> LeadFormix
    < / body >
    < / html >

    It's so frustrating...

    You are too busy in your frustration. Therefore, I can't follow your workflow in this last message (like what you mean by "he created rstyle_files and added the 4 files?).

    May not contain any file to include,orTags. It takes just a fragment of code that would be validly placed betweenand. Please try this to see if it improves things.

  • Problem of layout in the mainContent - PHP include file section

    Hi people, I have a problem with the layout of a page.

    I have included a PHP statement in the mainContent div that appears near the bottom end of the page here:

    http://zazzlefan.com/index2.php

    How can I get this content to keep just below "Featured Sellers - Al Rio Art"?

    My CSS file is a slightly twisted dreamweaver template

    http://zazzlefan.com/twoColFixLtHdr.CSS

    and there is a "zstore.css" file that controls the PHP include here:

    http://zazzlefan.com/CSS/zstore.CSS

    Can anyone help? Thanks in advance if you can.

    Terry

    {.centerGrids}
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    }
    Who do it for you?
    Martin
  • PHP includes - Simple Txt file

    I've been playing with using PHP includes / need to fill the content of a page. It would be very useful for all the pages where the content changes often, or eternal sources since I could download the txt files with the same name in a folder and replace existing ones.

    In my tests of this problem is that the text gets spread in the content area a single huge block with no paragraph separations. The original txt file has several separate paragraphs, but it's not the output in design mode or the browser. I checked my CSS as well as for the main content area and are all that I put my padding and styles of police, margins.

    Does anyone know if there is anything else I should do to solve this problem by using CSS or PHP?

    Thank you.

    Try surrounding the call include with a div and give the div of this class.
    Without seeing the page, it is difficult to say, but I suspect the

    class is
    "cancellation" with the first

    tag in the include file.

    destind4film wrote:
    > ok, well the include file is just a txt. But the CSS I am
    > trying to apply is called in the tags p surrounding php
    > statement... If that makes sense...
    >
    > In any case... include does not apply CSS style that he
    > should. This is evident by looking at the page in design mode or in
    > the browser...
    >
    > what is clarify?

  • print the contents of the web pages of android Tablet

    When I try to eprint from a web page, the web address line prints very well (with a bass line which reads: "sent from Samsung tablet"), but nothing about the content, even if print all preview shown on the page that I needed. Help, please!   The content of the web pages is an attachment and if so, how do I get an attachment to print?

    Hi TurboLady,

    Thank you for the update.  I appreciate it.  You read the document.

    The best way to print the content of the site is to print the web page using the browser in the HP ePrint app.  Please download and install the shop HP ePrint from the play of Google Mobile app . For reference, I have included the HP ePrint Mobile App FAQ document.

    Please let me know how it works for you.

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • PHP includes

    Hi all

    Can I have asked this question before but I'm still a little confused about PHP includes. I have created a few pages using Dreamweaver Bootstrap. My main NAVIGATION bar was created in an index.html file, but I see that things get complicated if I have to take the NAVIGATION code bar and add it to all the pages. So someone said using PHP include ( <? php include ("name.php");? > ), but the only downfall I see I is .index all pages NEED to be changed to .php. So now that I have met some problems and questions:

    QUESTIONS

    #1. Is there another option you are using PHP includes to have 1 master NAVBAR, that when I change the main NAVIGATION bar, it changes on all pages?

    #2. After you have configured the my site definition with my .php files, I made changes to one of my pages then Dreamweaver prompt me to save. Even if it changes 1 letter. Why does do that? Ideally, I would like to make a few changes before saving the file. Any idea what the problem might be?

    Thanks in advance.

    iangoulbourne wrote:

    QUESTIONS

    #1. Is there another option you are using PHP includes to have 1 master NAVBAR, that when I change the main NAVIGATION bar, it changes on all pages?

    You can still use jQuery to load the navigation. The load below a file named 'navigation.html' in a

    container with the class 'navigation '.

  • Creating a PHP Include to my main Menu

    When a PHP Include is inserted in a Web page, is it necessary for the pages to have the .php extension for example index.php? Please specify.

    ALT-Web Design & Publishing: Inclusions with PHP server-side

    I can analyze includes regular .html files?

    This varies by host site.  Some shared hosting plans allow it, but many do not.  If you are on a dedicated server or VPS plan of accommodation, it is likely that you can analyze files .html as the files .php by a modification (or creating) a .htaccess in the folder file root of your server.  If in doubt, check with your hosting provider.

    Nancy O.

  • How can I say that Dreamweaver folder is the PHP include path?

    My include path on my server is/php/includes.  He is not outside the web root or something like that, it's just convenient to have this folder to store all my common php extracts of I include or require a lot.

    So if I have an include or require the line as 'require 'db.php';' the server knows where to find db.php, Dreamweaver knows that it is a media file, so it adds it at the top of the code for easy access.

    However, in DW CC (2015) it will not wear this file because it is not because he is looking for the file in the directory root, and not in/php/includes.

    So my question is how can I tell Dreamweaver/php/includes is the include path so it will open these related files when I click on them and not forcing me to open the files individually, if I need to watch them or change them?  It's a HUGE pain in the butt when you have a dozen different includes that are all associated with the page you are editing and you must open each individually if you want to watch or change something.  Also, if I move this file in a different directory, Dreamweaver wants to change the relative path where to move, and I want to keep it exactly how it is.

    BTW, of course, I could just include the full path in the code of the page, but why should I?  The server will look in those include paths anyway, why I can not Dreamweaver to look the same on the local side?

    I found a solution, a bit clumsy but better that open them separately.

    By activating dynamically files automatically, when I open a page with includes I get two sets of files included in the related files bar.  The second game is the local version with the right path, the first is the link to the file using the root path (which does not exist of course).  So if I click on the second version of the related file, I can switch to that file and manipulated like any other related file.

    Thanks for the comments, I appreciate the insight.

  • Can I hide a book or entry in the table of contents, based on a parameter?

    Hi all. I am currently using RH 11.  Is there a way in which I can hide a book or entry in the table of contents, based on a parameter passed in the URL?

    Rh10 introduced dynamic content to the user, otherwise known as categories of content-centric. In an SSL, you can create different outputs. The idea is that aid is open with a drop down menu where the user can select a category. If you look in the output folder, there is a folder for each category and you can open this assistance to a specific category. However, the user can then select other categories.

    The method is described in the HR visit to my site and the projects in the sample have a SSL showing the method.

    To open a specific category, point you to the start page for the category, the name of the category. So the TypeA category can be open from TypeA.htm.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Display content based on Login

    I know that we can display content based on whether Yes or no someone is connected or not using {module_isloggedin}. However is it possible to display content based on secure member area is subscribed to?

    IE:

    If a user is logged and a member of Secure Zone 1 content display.

    If a user is logged and a member of the Secure Zone 2 display content B.

    etc.

    I know that it was not possible at some point and I'm not aware of this change. If it has changed? If not, are there plans to implement such a feature?

    Hi Lynda,

    For now, you can't even list the secured area, the user is connected, but you can try this workaround:

    -tell the user can choose between 2 secure areas to log in

    -each secure area has its own landing page

    -create a landing page empty for each secure areas, we will use these proxies

    Once the user enters their credentials, it is redirected to the page of empty destination. On this page, insert 2 pieces of javascript:

    -another one that sets a cookie so that you know how secure area, the user is logged in

    -one that redirects the user to the "Members" page only

    From the point of view of the user simply insert the credentials, login and be redirected to the members only page. The difference is that using proxy pages, you have a way to set a cookie allows you to determine what secure area, the user is logged off and customize the appearance of the page on this basis.

    Hope this helps,

    Mihai.

  • Panels with tabs Spry, all content on a single page, please help?

    Hello

    I am developing a website for my friend and I use PS CS5 spry tabbed panels. Everything looks great in DW, but when I load the page on the server all the content that shows a page and I can't navigate through the tabs. http://dndperspective.co.cc/

    I'll give you all of the code, I'm quite experienced in html, but have never used before spry, then it may be a stupid mistake. Any Suggestions?

    Here is the code:

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml">".
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > < /title > DND Perspective
    "< script src ="file:///C:/Users/work/Desktop/Sites/SpryAssets/SpryTabbedPanels.js"type =" text/javascript"> < / script >"
    "< link href ="file:///C:/Users/work/Desktop/Sites/SpryAssets/SpryTabbedPanels.css"rel ="stylesheet"type =" text/css"/ >"
    < style type = "text/css" >
    <!--
    {body
    background-color: #2B 3856;
    }
    {.style1}
    color: #FFFFFF;
    }
    {.style4}
    color: #FFFFFF;
    do-size: 36px;
    make-style: italic;
    do-family: Georgia, "Times New Roman", Times, serif;
    margin left: 250px;
    }
    . Style5 {color: #CCCCCC}
    {.style11}
    font size: 18pt;
    make-style: italic;
    }
    a: link {}
    color: #FFFF00;
    }
    a: visited {}
    Color: #000000;
    }
    a: hover {}
    color: #000033;
    }
    ->
    < / style > < / head >

    < body >
    < div align = "center" >
    < p align = "left" class = "style4" > DND < /p >
    < / div >
    < p align = "left" >
    < img style = "border: 6px insert #545565; margin left: 150px; margin-bottom: 50px; "src =" newbanner.jpg "width ="701"height ="244"/ > < / p >" "


    < p align = "center" >
    < p align = "center" >
    < div id = "TabbedPanels1" class = "TabbedPanels" >
    < ul class = "TabbedPanelsTabGroup" >
    < class li = "TabbedPanelsTab" tabindex = "0" > < img src = "images/homebar.jpg" width = "125" height = "50" / > < /li > "
    < class li = "TabbedPanelsTab" tabindex = "0" > < img src = "images/aboutbar.jpg" width = "125" height = "50" / > < /li > "
    < class li = "TabbedPanelsTab style11" tabindex = "0" > < em > < img src = "images/servicesbar.jpg" width = "125" height = "50" / > < /em > < /li > "


    < class li = "TabbedPanelsTab style11" tabindex = "0" > < img src = "images/gallerybar.jpg" width = "125" height = "50" / > < /li > "
    < class li = "TabbedPanelsTab style11" tabindex = "0" > < img src = "images/pricingbar.jpg" width = "125" height = "50" / > < /li > "
    < class li = "TabbedPanelsTab style11" tabindex = "0" > < img src = "images/contactbar.jpg" width = "125" height = "50" / > < /li > "
    < /ul >
    < div class = "TabbedPanelsContentGroup" >
    < div class = 'TabbedPanelsContent style1' >
    < div align = "center" >
    < class p = "style11" > welcome to DND < /p >
    < p > we are so glad that you took the time to visit our site during your planning schedule. We tried to make this site as user friendly as possible so that you can return to the planning of your big day. We provide simple and reliable services, so you have nothing to fear. < /p >
    < p > we are located in Rhode Island, but service Massachusetts and Connecticut as well. < /p >
    < p > please visit our services page to see all the photographs sessions we have available as: < /p >
    < /P > < p > wedding photography
    Photos of engagement < p > < /p >
    Portraits of the senior < p > < /p >
    < /P > < p > birthday
    < p > & amp; More! < /p >
    < p > < / p >
    < / div >
    < / div >
    < div class = "TabbedPanelsContent" >
    < class p = "style1" > < strong > < u > < /u > S.W < / strong >-< em > owner and photographer < /em >. For more information on the sound please click < a href = "Untitled - 11.pdf" > here < /a >.

    < / div >
    < div class = "TabbedPanelsContent" > Under Construction... < / div >
    < div class = "TabbedPanelsContent" > Under Construction... < / div >
    < div class = 'TabbedPanelsContent style1' >

    < p > we hear DND understand that packages and pricing may not provide the precise accommodation to suit you unique and carefully planned day. We are very open and happy to discuss with you an individual caterer package or plan that fits your style and most of all your budget. If you need us for just an hour or an entire day, we want to make your day as special as possible. We have services available from only $200,00. Below is our most popular packages, the price of printing and the AGP;

    packages, custom videos, thank you cards and albums. < /p >
    < hr width = "50%" align = "left" / >

    < p > < strong > Package 1-$500.00 < facilities > < / p >
    < p > 3 hours. 1 place - including DVD with unlimited photos, high resolution and editing free basic and improvement; webgallery with or without password; Special effects in 5 pictures; and 1 8 & quot; x 10 & quot; fine art high quality printing. * < /p >
    < p > < strong > package $575,00 2 < facilities > < / p >
    < p > 3 hours. 2 sites - including DVD with unlimited photos, high resolution and editing free basic and improvement; webgallery with or without password; Special effects in 5 pictures; and 1 8 & quot; x 10 & quot; fine art high quality printing. * < /p >
    < p > < strong > package 3-$700.00 < facilities > < / p >
    < p > 4 hours; 3 locations - included DVD with unlimited photos, high resolution and editing free basic and improvement; webgallery with or without password; Special effects in 5 pictures; and 1 8 & quot; x 10 & quot; fine art high quality printing. * < /p >
    < p > * each additional hour or a location available for $100.00. Beyond 20 miles will require additional charges. Extra DVD priced at $25.00 each. < /p >
    < hr width = "50%" align = "left" / >

    < p > < strong impressions > < facilities >: (quality Fine Art) * < /p >
    < p > individual prices: 8 & quot; x 10 & quot; = $12.99; 10 & quot; x 13 & quot; = $19,99; 2 - 5 & quot; x 7 & quot; = $12.99; 4 - 4 & quot; x 6 & quot; = $11.99 < /p >
    < p > (Custom sizes available - Custom framing available) < /p >
    < p > < strong > Package 1: facilities > < / p >
    < p > 3-8 & quot; x 10 & quot; 4 - 5 & quot; x 7 & quot; 4 - 4 & quot; x 6 & quot; = $50.00 < /p >
    < p > < strong > package 2: facilities > < / p >
    < p > 5-8 & quot; x 10 & quot; 6 - 5 & quot; x 7 & quot; 6 - 4 & quot; x 6 & quot; = $90.00 < /p >
    < p > < strong > Package 3: facilities > < / p >
    < p > 8 - 8 & quot; x 10 & quot; 4 - 5 & quot; x 7 & quot; 4 - 4 & quot; x 6 & quot; = $125.00 < /p >
    < p > < strong > package 4: facilities > (basic prints) < /p >
    < p > Any 100 printed photos 4 & quot; x 6 & quot; = $100.00 < /p >
    < hr width = "50%" align = "left" / >


    customary strong video > < p > < <: facilities > * < /p >
    photos of < p > 100 all set in music free = $50.00 < /p >
    < hr width = "50%" align = "left" / >

    < p > < strong custom > cards of thanks for your guests: facilities > * < /p >
    maps of < p > 300 - 4 & quot; x 6 & quot; = $350.00 < /p >
    maps of < p > 100 - 4 & quot; x 6 & quot; = $150.00 < /p >
    < hr width = "50%" align = "left" / >
    < p > < strong > Custom Albums available: facilities > (prices vary - custom) < /p >
    < p > bride & amp; Mary albums < /p >
    < /P > < p > Parent albums
    < hr width = "50%" align = "left" / >

    < p > * please be aware that your DVD will be available in a week. Web Gallery in 5-7 business days; Prints, cards or video within 2 to 6 weeks. Thank you! < /p >
    < / div >
    < div class = "TabbedPanelsContent style5" >
    < p > contact DND Perspective: < /p >
    < p > the best way to contact us is by email. < /p >
    < p > you can alternatively contact us at any time...! < /p >
    < / div >
    < div class = "TabbedPanelsContent" >
    < div align = "center" >
    < p > < span class = "style1" > all Info </span > < / p >
    < p > < / p >
    < / div >
    < / div >
    < / div >
    < / div >
    < p > < / p >
    < p > < / p >
    < p > < / p >
    < p > < / p >
    < p > < / p >
    < script type = "text/javascript" >
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels ("TabbedPanels1");
    ->
    < /script >
    < / body >
    < / html >

    You called: your links to the SpryAssets on your hard drive, are not binding for the files in the folder on the server.

    Fix these links:


    And you should be good to go.

    Beth

    PS. If you're having trouble with the Spry Widgets, take your questions to the Dreamweaver Forum Spry http://forums.adobe.com/community/labs/spry, where they will receive faster attention.

    B

Maybe you are looking for