Edit PHP pages in WYSIWYG {subject truncated by moderator}

HELP! How do I edit PHP website files in a WYSIWYG format? In others words, I am able to edit static HTML where I can see my changes occur as I edit them. With PHP files it doesn't render as such. HELP!
I am a beginner user but good enough to make edits to my HTML website. I just open the HTML file, make WYSIWYG changes and save them then use filezilla to upload to my server and boom changes are made.
Right now I was just given a php site and I want to make basic edits such as expanding the navigation menu, adding more links, pages to the nav menu etc and cannot get Dreamweaver to act like it does with HTML or SHTML files. Why? How can I fix this so that I can edit my PHP files with the same ease as HTML?
Thanks a ton!

PHP is code view only.  To work with dynamic sites (php, server-side includes & MySql databases), you need to set-up a local PHP environment on your computer.
Get one of these local testing servers for your OS and follow the installation instructions.
WAMP for Windows - http://www.wampserver.com/en/
XAMPP for Windows - http://www.apachefriends.org/en/xampp-windows.html
XAMPP for Mac - http://www.apachefriends.org/en/xampp-macosx.html
MAMP for Mac - http://www.mamp.info/en/downloads/index.html
Setting up a PHP environment in Dreamweaver
http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
Building your first dynamic website – Part 1: Setting up your site and database connection
http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
Nancy O.

Similar Messages

  • How do I edit php pages within contribute

    I have a page that I have made PHP.  The purpose is to display different parts of the page based on the subscription level of the client.  So there are 4 subscription levels and 4 section of the page.  Now I want to edit one of the 4 sections which are html code.  It displays the page correctly, however once I select edit the page is recognized php and shows a little box icon and not html.
    I use contribute to edit the HTML portions of the page??
    John  -

    Hi,
         You can use the option of editing the web page in an external application for making changes in php page.
         I had couple of questions - How are you displaying the different sections of the web page? Is it depending on the subscription level of a user - which you are controlling via php? And, is the HTML code in the web page generated by the php code?

  • Edit forms from Maillchimp {subject truncated by moderator}

    When I try to insert the embedded form from Mailchimp, I still cannot edit the position.  Can anybody help me with how to do it?

    When I make a 2 row/cell table in my #div article and I paste the embedded mailchimp html in on of the table rows/cells, one of the table cells/rows disappears!
    And I cannot change the size of the cell/row with the mailchimp code.

  • Editing PHP pages containing forms crashes Dreamweaver

    I have a small intranet project I'm using for doc storage and
    retrieval on a localhost machine.
    Have Windows XP, DW CS3, MySQL DB, and phpMyAdmin.
    The project was working fine up until about a week ago.
    Now, whenever I place my cursor in an area of the php file
    that is between <?PHP ?> tags, Dreamweaver throws an
    exception error.
    I had installed PEAR between the last time it worked and when
    it started throwing errors.
    I removed all the PEAR folders and files and made sure
    PHP.ini isn't referencing any PEAR .dlls etc.
    Checked environment paths too, BTW.
    I'm still thoroughly broken though.
    I'm inclined to think it's not in the code itself since that
    wasn't changed between the time everything worked and when
    everything stopped working.
    Looking for any ideas as to possible causes of the
    problem.

    tjfinn wrote:
    > I have a small intranet project I'm using for doc
    storage and retrieval on a
    > localhost machine.
    > Have Windows XP, DW CS3, MySQL DB, and phpMyAdmin.
    > The project was working fine up until about a week ago.
    > Now, whenever I place my cursor in an area of the php
    file that is between
    > <?PHP ?> tags, Dreamweaver throws an exception
    error.
    It looks as though you have a corrupt cache file. Follow
    troubleshooting
    step 4 in the following technote:
    http://www.adobe.com/go/tn_19105
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Using Incontext editing with PHP pages

    Hi,
    Has anyone established whether you can use incontext editing
    with php pages. My site works perfectly except for the pages i have
    created in php. The reason i have used php is that they are secure
    that only certain users can access.
    The error message that comes up is: "No input file specified.
    " But the page is up.
    Thanks in advance for any help anyone can provide.
    Chris

    Hello Chris,
    Yes, it is possible to edit PHP pages with InContext Editing,
    however InContext Editing should not be used to edit dynamic
    content in PHP pages. If you edit dynamic content that is loaded
    into an InContext Editing editable region, it will be overwritten
    as static content.
    In regards to the problem you're experiencing, it appears to
    be an issue with the HEAD http request. InContext Editing is using
    HEAD requests to check the existence of the draft and published
    versions of the current page (in your case, InContext Editing is
    making a request for products_bedroom_draft.php). If those calls do
    not work as expected (the HEAD should return status code 200/304 if
    the checked page exists, 404 otherwise) then you will experience
    this behavior.
    A HEAD http request for products_bedroom_draft.php is
    returning a 502 Bad Gateway status code which is not what InContext
    Editing expects.
    Please contact your web hosting provider for assistance with
    this server issue. This will likely require changes in web server
    configuration.
    http://www.adobe.com/go/kb406749
    Please let me know if you need further assistance.
    Best regards,
    Corey

  • Cannot create editable region on php page

    I was successful on the html page; to select the text and create editable region.
    But when I select the same text on the php page; I get the error message: "Selection is outside the body tag. Select the text inside the body tag."
    www.ndccalliance.org/resource.php
    www.ndccalliance.org/resource.html
    What am I doing wrong?
    Thank you.

    Hello JudyEllis,
    Take a look at the output source code for your PHP page when viewed in the browser. You actually have multiple nested opening and closing HTML and body tags in your page. It appears maybe you're using includes, for instance with your header and footer, but your include files are entire HTML documents, not just the chunks of code you need.
    Best regards,
    Corey

  • Editing  PHP in Dreamweaver

    Hi although I not new to Dreamweaver I am new to PHP files.  How do you edit PHP files within Dreamweaver.  For example, in an existing PHP file where I want to insert a picture/graphic it puts it elsewhere and then I have to move it?
    Thanks!
    D

    Canned Heat wrote:
    > How do I go about editing zen cart php in Dreamweaver in
    the design
    > wysiwyg view? Can it be done? If not, edit with what?
    You can try to click on the "live data view" icon on the top
    bar of page window.
    But I don't think you can *change* live data view in design
    view, i.e. drag the edge of a PHP
    generated div to make it wider. You'll need to edit PHP in
    the code.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Zen Cart - how to edit php

    How do I go about editing zen cart php in Dreamweaver in the
    design
    wysiwyg view? Can it be done? If not, edit with what?

    Canned Heat wrote:
    > How do I go about editing zen cart php in Dreamweaver in
    the design
    > wysiwyg view? Can it be done? If not, edit with what?
    You can try to click on the "live data view" icon on the top
    bar of page window.
    But I don't think you can *change* live data view in design
    view, i.e. drag the edge of a PHP
    generated div to make it wider. You'll need to edit PHP in
    the code.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • After upgrading to FF 3.6.12 I can no longer view PHP pages from my hard drive.

    After upgrading to version 3.6.12 I can no longer open PHP web pages from my hard drive. When I create or edit web pages I view them from my hard drive first before uploading, as many webmasters do to look for errors before taking them live.
    I can view PHP pages online, but from my hard drive it just spawns endless empty tabs. Instead of just opening the page it asked me what to open it with, thinking the PHP web page is a script.
    It was working fine before the upgrade. I had a page open that I wanted to edit, which it reopened when my browser restarted.
    Then I edited the page. All I did was add a link to it. Then I hit the refresh button to see the change and instead of reloading the page, FF asked me what to do with the PHP script, prompting me to save it or choose what program to open it with.
    I selected to view it with FF and it just spawned endless tabs. They wouldn't stop. Had to shut down FF and it probably had 40 tabs opened with nothing on them. I tried other PHP pages from my hard drive that opened fine before, but it did the same thing with them.
    I tried finding help online and I see others have had the same problem, but no solution was offered that worked. I tried rebooting, same story, it wants to know what to do with the PHP script.
    I'm being forced to use another browser, so I'm going to go download Chrome now. If this probably isn't fixed soon I'll simply give up on FF. It's not worth the aggravation. I can't tell you how much TIME I've wasted today -- HOURS.
    Very disappointed.

    Thanks for the reply. It doesn't have to process the php, it just has to show the HTML content. It did that just fine before the last upgrade but won't now.
    I've seen that page you referenced: http://kb.mozillazine.org/File_types_and_download_actions.
    It doesn't help. The things it says to look for aren't there for me, specifically:
    browser.download.pluginOverrideTypes
    plugin.disable_full_page_plugin_for_types
    I followed the rest of the instructions but it didn't help.
    I did get it to quit opening tabs, instead it prompts me what it should do with the file every time now. What it should do, and used to do, is open the php page and display the HTML content.
    Any other ideas?

  • Unable to edit php files in CS3

    Hi,
    I have users that need to edit content in php files in Contribute CS3, just editing text and adding images etc. Every time they try to edit a page they just get a grey screen with the words 'headerMenu', which happens to be the page title of a file that is included using the php include command. They cannot edit anything on the page. I have checked the admin options and they are allowed to edit scripts etc..
    Any ideas on what might be causing this?
    Thanks,
    David

    Hi imadb,
    Since you have the Acrobat Pro DC 30-day trial, please try opening that to edit your PDFs (rather than opening them in Reader, and clicking the Edit PDF button).
    If you search your computer, you should have both an Adobe Acrobat Reader DC and and Adobe Acrobat Pro application. They can coexist, but it does make things a little confusing.
    If you want to evaluate  Acrobat Pro DC, it's best that you open it directly. That way, you can get the real "lay of the land" with Acrobat before making any purchase decisions.
    Best,
    Sara

  • Footer displayed inaccurately in Dreamweaver CS4 php page

    Hi,
    I recently upgraded from Dreamweaver 8 to Dreamweaver CS4. Our organization site uses mostly php pages. When I attempt to open these pages in Dreamweaver CS4 the footer menu bar displays innacurately down through the center of the page and won't allow any edits as it acts like a top layer or something. Usually it acts as a menu bar on the top of any page on our website.
    As it should appear from an online screen shot: You'll notice the orange menu bar across the top.
    A shot of the Design View in Dreamweaver CS4:  You'll see the menu options are running down the center of the page as text.
    This is the code : Can also be visited at www.axisdance.org
        <div id="footer">AXIS Dance Company &middot; 1428 Alice Street, Suite 200 &middot; Oakland, CA 94612<br />
            Phone: 510-625-0110 &middot; Fax: 510-625-0321
        </div><!--end footer-->
        <div id="navBar"><!--<a name="navigation" class="minimize"> </a><br />-->
            <!-- begin list for menu-->
            <ul id="udm" class="udm">
                <li><h2><a href="index.php">home</a></h2>
                </li>
                <li><h2><a href="about.php">about us</a></h2>
                    <ul>
                    <li><a href="about.php">About AXIS</a></li>
                    <li><a href="about_news.php">News</a></li>
                    <li><a href="about_mediaKit.php">Media Kit</a></li>
                    <li><a href="about_dancers.php">Dancers</a></li>
                    <li><a href="about_staff.php">Board & Staff</a></li>
                    <li><a href="about_jobs.php">Jobs & Auditions</a>
                    <ul>
                        <li><a href="about_internships.php">Internships</a></li>
                        </ul>
                    <li><a href="about_faq.php">FAQ</a></li>
                    <li><a href="about_contact.php">Contact Us</a>
                        <ul>
                        <li><a href="about_contact_directions.php">Directions</a></li>
                        </ul>                   
                    </li>
                    </ul>
                </li>
                <li><h2><a href="performance.php">performances</a></h2>
                    <ul>
                    <li><a href="performance.php">Performance Calendar</a></li>
                    <li><a href="performance_repertory.php">Repertory Clips </a></li>
                    <li><a href="performance_gallery.php">Image Gallery</a></li>
                    <li><a href="performance_reviews.php">Reviews</a></li>
                    <li><a href="performance_booking.php">Booking AXIS</a></li>
                    <li><a href="performance_collaboration.php">Collaborating Artists</a></li>
                    </ul>
                </li>
                <li><h2><a href="education.php">education</a></h2>
                    <ul>
                    <li><a href="education.php">About Education </a></li>
                    <ul>
                        <li><a href="kids.php">Dance Access/KIDS!</a></li>
                        <li><a href="Adults.php">Dance Access (Adults)</a></li>
                        </ul>
                    <li><a href="education_danceAccess.php">Class Schedule</a></li>
                    <li><a href="education_hiring.php">Booking Dance Access</a></li>
                    <li><a href="education_summerIntensive.php">Summer Intensive</a></li>
                    <li><a href="education_resources.php">Resources</a>
                        <ul>
                        <li><a href="education_resources_videos.php">Media</a></li>
                        <li><a href="education_resources_articles.php">Essays & Articles</a></li>
                        <li><a href="assets/teachersGuide.pdf">Teacher's Guide (PDF)</a></li>
                        </ul>                   
                    </li>
                    <li><a href="education_likeUs.php">Companies Like Us</a></li>
                    </ul>
                </li>       
                <li><h2><a href="support.php"> support </a></h2>
                    <ul>
                    <li> <a href="support.php"> Ways to Support</a></li>
                    <li><a href="support_volunteering.php">Volunteering</a></li>                   
                    <li><a href="support_mailingList.php">Join Mailing List</a></li>                   
                    <li><a href="support_store.php">AXIS Store</a></li>                   
                    <li><a href="support_funders.php">Funders &amp; Donors </a></li>                   
                    <li><a href="support_webSupporters.php">Web Supporters</a></li>                   
                    </ul>
                </li>
            </ul>
            <img src="images/shim.gif" width="800" height="1" border="0" alt="navigation bar" /><br />
        </div><!--end navbar-->
    </div><!--end center-->
    <div id="copy">
        <div id="right">&copy; 1999-2010. AXIS Dance Company  <br>
            <a href="http://www.facebook.com/pages/AXIS-Dance-Company/56899952604?ref=ts" target="_blank"></a> <a href="http://www.youtube.com/user/AXISDanceComp" target="_blank"></a> <a href="http://www.axisdance.org/support_mailingList.php" target="_blank"></a><br />
        </div>
        <div id="powered"> </div>
        <div class="clear"> </div>
    </div><!--end copy-->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10598516-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    </html>
    This seems like a simple solution but I'm just not sure what it would be.
    Thanks

    The live view or preview functions do not work and lead to the error: "Not Found, the requested URL/html/index.php was not found on this server.'   This is another issue that I don't understand.
    Unfortunately, I did not develop this website and have a minimal knowledge of html and Dreamweaver.  I'm not sure if I can answer the question about which menu system we're using - would seeing the code of the footer help?   I'll paste below in case.  
    And just to be clear, the problem only occurs in editing in Dreamweaver, but when uploaded to our server it appears correctly.
    Thanks for your help!
        <div id="footer">AXIS Dance Company &middot; 1428 Alice Street, Suite 200 &middot; Oakland, CA 94612<br />
            Phone: 510-625-0110 &middot; Fax: 510-625-0321
        </div><!--end footer-->
        <div id="navBar"><!--<a name="navigation" class="minimize"> </a><br />-->
            <!-- begin list for menu-->
            <ul id="udm" class="udm">
                <li><h2><a href="index.php">home</a></h2>
                </li>
                <li><h2><a href="about.php">about us</a></h2>
                    <ul>
                    <li><a href="about.php">About AXIS</a></li>
                    <li><a href="about_news.php">News</a></li>
                    <li><a href="about_mediaKit.php">Media Kit</a></li>
                    <li><a href="about_dancers.php">Dancers</a></li>
                    <li><a href="about_staff.php">Board & Staff</a></li>
                    <li><a href="about_jobs.php">Jobs & Auditions</a>
                    <ul>
                        <li><a href="about_internships.php">Internships</a></li>
                        </ul>
                    <li><a href="about_faq.php">FAQ</a></li>
                    <li><a href="about_contact.php">Contact Us</a>
                        <ul>
                        <li><a href="about_contact_directions.php">Directions</a></li>
                        </ul>                   
                    </li>
                    </ul>
                </li>
                <li><h2><a href="performance.php">performances</a></h2>
                    <ul>
                    <li><a href="performance.php">Performance Calendar</a></li>
                    <li><a href="performance_repertory.php">Repertory Clips </a></li>
                    <li><a href="performance_gallery.php">Image Gallery</a></li>
                    <li><a href="performance_reviews.php">Reviews</a></li>
                    <li><a href="performance_booking.php">Booking AXIS</a></li>
                    <li><a href="performance_collaboration.php">Collaborating Artists</a></li>
                    </ul>
                </li>
                <li><h2><a href="education.php">education</a></h2>
                    <ul>
                    <li><a href="education.php">About Education </a></li>
                    <ul>
                        <li><a href="kids.php">Dance Access/KIDS!</a></li>
                        <li><a href="Adults.php">Dance Access (Adults)</a></li>
                        </ul>
                    <li><a href="education_danceAccess.php">Class Schedule</a></li>
                    <li><a href="education_hiring.php">Booking Dance Access</a></li>
                    <li><a href="education_summerIntensive.php">Summer Intensive</a></li>
                    <li><a href="education_resources.php">Resources</a>
                        <ul>
                        <li><a href="education_resources_videos.php">Media</a></li>
                        <li><a href="education_resources_articles.php">Essays & Articles</a></li>
                        <li><a href="assets/teachersGuide.pdf">Teacher's Guide (PDF)</a></li>
                        </ul>                   
                    </li>
                    <li><a href="education_likeUs.php">Companies Like Us</a></li>
                    </ul>
                </li>       
                <li><h2><a href="support.php"> support </a></h2>
                    <ul>
                    <li> <a href="support.php"> Ways to Support</a></li>
                    <li><a href="support_volunteering.php">Volunteering</a></li>                   
                    <li><a href="support_mailingList.php">Join Mailing List</a></li>                   
                    <li><a href="support_store.php">AXIS Store</a></li>                   
                    <li><a href="support_funders.php">Funders &amp; Donors </a></li>                   
                    <li><a href="support_webSupporters.php">Web Supporters</a></li>                   
                    </ul>
                </li>
            </ul>
            <img src="images/shim.gif" width="800" height="1" border="0" alt="navigation bar" /><br />
        </div><!--end navbar-->
    </div><!--end center-->
    <div id="copy">
        <div id="right">&copy; 1999-2010. AXIS Dance Company  <br>
            <a href="http://www.facebook.com/pages/AXIS-Dance-Company/56899952604?ref=ts" target="_blank"></a> <a href="http://www.youtube.com/user/AXISDanceComp" target="_blank"></a> <a href="http://www.axisdance.org/support_mailingList.php" target="_blank"></a><br />
        </div>
        <div id="powered"> </div>
        <div class="clear"> </div>
    </div><!--end copy-->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10598516-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    </html>

  • How do I display or hide a Java menu based on current url in a php page

    How do I display or hide a Javascript menu based on the current url in a php page?
    I want to specify when a java menu appears on a page based on the current url - does anyone have a script for the vars and conditional statements to make this happen - it would be something like this in natural language:
    <javascript>
    if currenturl = http://jemmakidd.com/categories.php
    then displaymenu
    else if currenturl = http://jemmakidd.com/categories.php?cat=14 (or 15,16 etc)
    then DONOTdisplaymenu
    What is needed is that, if you look at this page there is a java menu under the first category:
    http://jemmakidd.com/categories.php
    I WANT the menu to appear on that page so that is working, however if I look at one of the store categories, like on this page, I do NOT want the menu to appear - it may be that this can be done without using a java current url type function - thats why I'm asking...
    http://jemmakidd.com/categories.php?cat=14
    So to summarise:
    http://jemmakidd.com/categories.php (If this url is used DO display menu - if any other url DONT display menu)
    Thanks again...any ideas?
    Edited by: littlealex2009 on Jul 15, 2009 12:51 AM

    This is a Java forum, not a Javascript forum. Google the differences.
    kind regards,
    Jos

  • Parse errors on php page...

    I am new to php and am trying to create a php form on a website I am building for a friend. The form looks like I want it to on the page.
    http://www.mosaleen.com/order.html
    It also works... sending the info to my email upon submit and redirecting me to the "Thank you for your order page".
    The code to make the form function actually rests on the thank you page... I am attaching the code below.
    http://www.mosaleen.com/Order.php
    Problem is that when I validate the php page it tells me that there are parsing errors. Specifically:
    Unable to determine parse mode
    Line 1, Column 1:character "Y" not allowed in prolog
    AND
    Line 1, Column 85:end of document in prolog
    Does anyone know where the problem is? I have checked my css sheets and they are validating just fine, so there shouldn't be any issue there. The php script was adapted from the one at  http://dreamweaverspot.com/adobe-dreamweaver-tutorial-contact-forms/ if that helps.
    <?php
    $my_email = "[email protected]";
    $continue = "thankyou.html";
    $errors = array();
    // Remove $_COOKIE elements from $_REQUEST.
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    // Check all fields for an email header.
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc: )/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    // Validate email field.
    if(isset($_REQUEST['email']) && !empty($_REQUEST['email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['email'] = trim($_REQUEST['email']);
    if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    // Check for a blank form.
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    // Build message.
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Order from MoSaleen.com";
    $headers = "From: " . $_REQUEST['email'];
    mail($my_email,$subject,$message,$headers);
    ?>
    <!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/subpage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css" media="all">
    <!--
    @import url("styles.css");
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #rightColumn {
      width: 220px;
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #content {
      zoom: 1;
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="wrapperbackground">
      <div id="outerWrapper">
        <div id="header">
          <div id="logo"><img src="images/logo2.png" alt="g" width="300" height="86" /></div>
          <div id="links"><a href="about.html">About Us</a> | <a href="contact.html">Contact Us</a> | 417.825.1498</div>
          <div class="clearFloat"></div>
        </div>
        <div id="nav">
          <ul>
            <li><a href="index.html"><span>Home</span></a></li>
            <li><a href="about.html"><span>Idler Pulley Systems</span></a></li>
            <li><a href="testimonials.html"><span>Proven Results</span></a></li>
            <li><a href="install.html"><span>Installation</span></a></li>
            <li><a href="order.html"><span>Order a System</span></a></li>
            <li><a href="contact.html"><span>Contact Us</span></a></li>
          </ul>
        </div>
        <div id="feature" style="display:none;"></div>
        <div id="subcontentWrapper">
          <div id="content"> <!-- InstanceBeginEditable name="content" -->
            <h1>Thank You!</h1>
            <p><span style="font-weight: bold">Your order has been submitted.</span> <br />
              <br />
            Please make your PayPal payment to <a href="mailto:[email protected]">[email protected]</a> for the required amount (see list below for a reminder on pricing). Once we receive your form AND payment we will confirm your order by email and include all shipping information. <span style="font-weight: bold">If additional information is required we will contact you by phone or email.</span></p>
            <p>If you have questions regarding your order or payment,  feel free to contact us at 417.825.1498.</p>
            <p><img src="images/line.jpg" alt="" width="590" height="10" class="clearFloat" /></p>
            <h1>Pricing List</h1>
            <p style="font-weight: bold"> Shipping is free on all orders!</p>
            <p>99-04 Saleen MoSaleen™ Idler Pulley System<br />
              Powder Coated with standard black pulley ($175.00)<br />
              Powder Coated with upgraded CNC aluminum anodized pulley ($225.00)<br />
              Ceramic Coated with standard black pulley ($190.00)<br />
              Ceramic Coated with upgraded CNC aluminum anodized pulley ($240.00)<br />
              <br />
              05-09 Saleen MoSaleen™ Idler Pulley System ($275.00)</p>
          <!-- InstanceEndEditable --></div>
          <div id="rightColumn">
            <div id="rightColumnContent">
               <h3>Saleen Performance Sites</h3>
             <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
       <li></li>           
       <li><a href="http://www.teamjdm.com"><img src="images/jdm.png" alt="JDM Engineering" width="200" height="94" /></a></li>
                <li><a href="http://www.performanceautosport.com"><img src="images/pauto.png" alt="Performance Autosports" width="200" height="90" /></a> </li>
                <li><a href="http://www.brenspeed.com"><img src="images/bren.png" alt="Brenspeed Custom Tuning" width="200" height="82" /></a></li>
                <li><a href="http://www.stage3motorsports.com"><img src="images/stage.png" alt="Stage 3 Motorsports" width="200" height="73" /></a></li>
                <li><a href="http://www.chicanesport.com"><img src="images/chic.png" alt="Chicane Sport Tuning" width="200" height="81" /></a></li>
                <li><a href="http://www.spencerperformance.com"><img src="images/spen.png" alt="Spencer Performance" width="200" height="94" /></a></li>
              </ul>
              </div>
          </div>
          <br class="clearFloat" />
        </div>
      </div>
    </div>
    <div id="footer"><img src="http://www.justdreamweaver.com/templates/link/spacer.gif" alt="" width="1" height="1" />Copyright &copy; 2008 MoSaleen Performance, LLC <br />
    <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> |
    Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div>
    </body>
    <!-- InstanceEnd --></html>

    I have changed the code to where the php form section is within the html of the page I created. (posted below)
    http://www.mosaleen.com/order_thanks.php
    This option gets rid of the parsing error but creates 16 errors in code when validated. It still looks right and still emails correctly.
    Is there a tutorial somewhere... or a simpler php code that would submit this form to email? It doesn't need to be fancy.  Or... if one of these options work, which one should I work with.
    Or... does it really matter that I am having the parsing error since the code looks right and is working? Not that it is clean design to leave it that way...
    I think the problem lies in trying to insert the php coding ( that submits the form to email ) inside the thank you page... but Im not sure how else to handle this. Any suggestions?
    Andrea
    <!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/subpage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css" media="all">
    <!--
    @import url("styles.css");
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #rightColumn {
      width: 220px;
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #content {
      zoom: 1;
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="wrapperbackground">
      <div id="outerWrapper">
        <div id="header">
          <div id="logo"><img src="images/logo2.png" alt="g" width="300" height="86" /></div>
          <div id="links"><a href="about.html">About Us</a> | <a href="contact.html">Contact Us</a> | 417.825.1498</div>
          <div class="clearFloat"></div>
        </div>
        <div id="nav">
          <ul>
            <li><a href="index.html"><span>Home</span></a></li>
            <li><a href="about.html"><span>Idler Pulley Systems</span></a></li>
            <li><a href="testimonials.html"><span>Proven Results</span></a></li>
            <li><a href="install.html"><span>Installation</span></a></li>
            <li><a href="order.html"><span>Order a System</span></a></li>
            <li><a href="contact.html"><span>Contact Us</span></a></li>
          </ul>
        </div>
        <div id="feature" style="display:none;"></div>
        <div id="subcontentWrapper">
          <div id="content"> <!-- InstanceBeginEditable name="content" -->
            <?php
    $my_email = "[email protected]";
    $continue = "thankyou.html";
    $errors = array();
    // Remove $_COOKIE elements from $_REQUEST.
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    // Check all fields for an email header.
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc: )/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    // Validate email field.
    if(isset($_REQUEST['email']) && !empty($_REQUEST['email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['email'] = trim($_REQUEST['email']);
    if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    // Check for a blank form.
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    // Build message.
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Order from MoSaleen.com";
    $headers = "From: " . $_REQUEST['email'];
    mail($my_email,$subject,$message,$headers);
    ?>
            <h1>Thank You!</h1>
            <p><span style="font-weight: bold">Your order has been submitted.</span> <br />
                <br />
              Please make your PayPal payment to <a href="mailto:[email protected]">[email protected]</a> for the required amount (see list below for a reminder on pricing). Once we receive your form AND payment we will confirm your order by email and include all shipping information. <span style="font-weight: bold">If additional information is required we will contact you by phone or email.</span></p>
            <p>If you have questions regarding your order or payment,  feel free to contact us at 417.825.1498.</p>
            <p><img src="images/line.jpg" alt="" width="590" height="10" class="clearFloat" /></p>
            <h1>Pricing List</h1>
            <p style="font-weight: bold"> Shipping is free on all orders!</p>
            <p>99-04 Saleen MoSaleen™ Idler Pulley System<br />
              Powder Coated with standard black pulley ($175.00)<br />
              Powder Coated with upgraded CNC aluminum anodized pulley ($225.00)<br />
              Ceramic Coated with standard black pulley ($190.00)<br />
              Ceramic Coated with upgraded CNC aluminum anodized pulley ($240.00)<br />
                <br />
              05-09 Saleen MoSaleen™ Idler Pulley System ($275.00)</p>
            <p> </p>
          <!-- InstanceEndEditable --></div>
          <div id="rightColumn">
            <div id="rightColumnContent">
               <h3>Saleen Performance Sites</h3>
             <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
       <li></li>           
       <li><a href="http://www.teamjdm.com"><img src="images/jdm.png" alt="JDM Engineering" width="200" height="94" /></a></li>
                <li><a href="http://www.performanceautosport.com"><img src="images/pauto.png" alt="Performance Autosports" width="200" height="90" /></a> </li>
                <li><a href="http://www.brenspeed.com"><img src="images/bren.png" alt="Brenspeed Custom Tuning" width="200" height="82" /></a></li>
                <li><a href="http://www.stage3motorsports.com"><img src="images/stage.png" alt="Stage 3 Motorsports" width="200" height="73" /></a></li>
                <li><a href="http://www.chicanesport.com"><img src="images/chic.png" alt="Chicane Sport Tuning" width="200" height="81" /></a></li>
                <li><a href="http://www.spencerperformance.com"><img src="images/spen.png" alt="Spencer Performance" width="200" height="94" /></a></li>
              </ul>
            </div>
          </div>
          <br class="clearFloat" />
        </div>
      </div>
    </div>
    <div id="footer"><img src="http://www.justdreamweaver.com/templates/link/spacer.gif" alt="" width="1" height="1" />Copyright &copy; 2008 MoSaleen Performance, LLC <br />
    <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> |
    Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div>
    </body>
    <!-- InstanceEnd --></html>

  • Can Contribute CS5 publish to secured PHP pages?

    I have created a site that has standard HTML pages and a members section that uses PHP pages with the Dreamweaver restrict access server behavior to limit access to authorized users.  I'm trying to use Contribute CS5 to update or create new secured pages (ultimately the client will do this) but it only seems to work for the static HTML pages.
    When I open the login PHP page, I can enter the user name and password, but the page that I am then directed to (set us as part of the login user server behavior) returns a script error telling me "Spry" is undefined on a line that dosen't spry.  I can either continue running scripts on the page or not (same behavior results), edit the page and then try to publish it, whereupon I get an error saying that either the server is busy or I am not authorized to publish on the site.  But without exiting the app, I can then go to a static html page, edit and successfully publish it, so it seems that the problem is associated with the restricted access pages, as though session variables aren't being recognized.
    All help appreciated.  Thanks.

    OK, found the problem. There was an incorrect path to a javascript file in my header navbar that only effected PHP pages that were in a file off the root.  All non-PHP pages, being in the root, worked fine.
    So the bottom line is that Contribute works properly, and the problem was a path error that Contribute was in fact flagging.
    Only wish that I had seen this before I changed all of the PHP pages to HTML and revised the login pages to so all of them I needed to update were non-PHP.  OUCH!
    I guess I get 10 points for answering my own question... but not worth it.

  • DW crashes when editing PHP

    Any time I try to edit my dynamic pages, Dreamweaver keeps
    shutting down with the following error sig:
    Error Signature:
    AppName: dreamweaver.exe AppVer: 9.0.0.3481 ModName:
    dreamweaver.exe
    ModVer: 9.0.0.3481 Offset: 002dab57

    Here's the code
    <?php
    include('includes/protect.php');
    include('includes/db.php');
    if(isset($_GET['del'])){
    $del = intval($_GET['del']);
    mysql_query("delete from news where id = ".$del);
    if(isset($_GET['disable'])){
    $disable = intval($_GET['disable']);
    mysql_query("update news set active = 0 where id =
    ".$disable);
    if(isset($_GET['enable'])){
    $enable = intval($_GET['enable']);
    mysql_query("update news set active = 1 where id =
    ".$enable);
    $yearlower = $_GET['year'];
    $_SESSION['newsyear'] = $_GET['year'];
    $_SESSION['newssort'] = $_GET['sort'];
    ?>
    <?php include('header.php');?>
    <table width="100%" id="brieflist">
    <td colspan="2"><h2>Manage News Stories
    </h2></td>
    <td colspan="2">
    <p align="right"><select class="option"
    name="otheryear" id="otheryear">
    <option <?php if (($_GET['year']) == 2007)
    {?>selected="selected" <?php
    ;}?>value="news.php?year=2007&amp;sort=<?php echo
    $_GET['sort'];?>">2007</option>
    <option <?php if (($_GET['year']) == 2006)
    {?>selected="selected" <?php
    ;}?>value="news.php?year=2006&amp;sort=<?php echo
    $_GET['sort'];?>">2006</option>
    <option <?php if (($_GET['year']) == 2005)
    {?>selected="selected" <?php
    ;}?>value="news.php?year=2005&amp;sort=<?php echo
    $_GET['sort'];?>">2005</option>
    <option <?php if (($_GET['year']) == 'all')
    {?>selected="selected" <?php
    ;}?>value="news.php?year=all&amp;sort=<?php echo
    $_GET['sort'];?>">All</option>
    </select></p>
    </td>
    <tr>
    <td colspan="4">
     <br />
    <a href="news-add.php">Add News Story </a>
    <p><hr />
     <br />
     </p>
    </td>
    </tr>
    <!-- Header Row -->
    <tr>
    <td class="columnhead"><a class="columnhead"
    href="<?php echo $PHP_SELF;?>?year=<?php echo
    $_GET['year']?>&amp;sort=headline"><b>Headline</b></a></td>
    <td class="columnhead"><a class="columnhead"
    href="<?php echo $PHP_SELF;?>?year=<?php echo
    $_GET['year']; ?>&amp;sort=newsdate"><b>Article
    Date</b></a></td>
    <td
    class="columnhead">      <b><u>Actions</u></b></td>
    <td align="right" class="columnhead"><a
    class="columnhead" href="<?php echo
    $PHP_SELF;?>?year=<?php echo $_GET['year'];
    ?>&amp;sort=active"><b>Status</b></a></td>
    </tr>
    <tr>
    <td colspan="4"> </td>
    </tr>
    <tr><td colspan="4"><hr
    /></td></tr>
    <?php
    // status, date, or headline
    if ($_GET['sort'] == "newsdate") {
    $dateon = 1;
    $statuson = 0;
    $headlineon = 0;
    } elseif ($_GET['sort'] == "active") {
    $dateon = 0;
    $statuson = 1;
    $headlineon = 0;
    } elseif ($_GET['sort'] == "headline") {
    $dateon = 0;
    $statuson = 0;
    $headlineon = 1;
    // sorting rules
    if ($statuson == 1) {
    $status = " asc, newsdate desc, lastupdate desc";
    if ($dateon == 1) {
    $status = " desc, lastupdate desc";
    if ($headlineon == 1) {
    $status = " asc";
    // if all years selected
    if ($_GET['year'] == 'all') {
    $yearlower = 0000;
    $yearplus = 9999;
    } else {
    $yearplus = $yearlower;
    $get_briefs = mysql_query("select
    id,headline,active,newsdate,gbcpr,tpaapr,lastupdate from news where
    newsdate >= DATE '".$yearlower."-00-00' AND newsdate <= DATE
    '".$yearplus."-99-99' order by ".$_GET['sort'].$status);
    $count = 0;
    while($brief = mysql_fetch_array($get_briefs)){
    $count++;
    ?>
    <tr>
    <!-- Headline -->
    <td width="500" valign="bottom"><p
    class="briefinfo"><b><a href="news-edit.php?id=<?php
    echo $brief['id'];?>"><?php echo
    $brief['headline'];?></a></b></p></td>
    <!-- Date -->
    <td width="80" valign="bottom" align="center"><p
    class="briefinfo">
    <?php
    $newsdate = strtotime($brief['newsdate']);
    echo date('M j, Y', $newsdate);
    ?>
    </p></td>
    <!-- Actions -->
    <td width="100" valign="bottom" align="center"><p
    class="briefinfo">      <a
    href="news-edit.php?id=<?php echo
    $brief['id'];?>">Edit</a> | <a href="<?php echo
    $PHP_SELF;?>?year=<?php echo
    $_GET['year'];?>&amp;sort=<?php echo
    $_GET['sort'];?>&amp;del=<?php echo $brief['id'];?>"
    onclick="confirm('Are you sure?');return confirm('Are you REALLY
    sure?');">Delete</a>
    </p>
    </td>
    <!-- Status -->
    <td valign="bottom" align="center"><p class=<?php
    if($brief['active']==0) {?> "draft"<?php ;} echo "status";
    ?> ><?php if($brief['active']==1){?><a
    href="<?php echo $PHP_SELF;?>?year=<?php echo
    $_GET['year']?>&amp;sort=<?php echo
    $_GET['sort'];?>&amp;disable=<?php echo
    $brief['id'];?>">published</a><?php }else{?><a
    class="draft" href="<?php echo $PHP_SELF;?>?year=<?php
    echo $_GET['year']?>&amp;sort=<?php echo
    $_GET['sort'];?>&amp;enable=<?php echo
    $brief['id'];?>">draft</a><?php }?></p>
    </td></tr>
    <tr><td colspan="4"><hr
    /></td></tr>
    <?php }?>
    </table>
    <?php include('footer.php');?>

Maybe you are looking for

  • Regarding performance tunnning

    hi experts,                i have developed a report but while execution  it is taking some extra time ,i already checked the extended program check and the code inspector,,i made it to zero for error ,warning etc.what extra sud i do to improve the p

  • Can i have trial version for visual composer 7.0 or sapnetweaver 2004?

    hi all, Can anyone help me out where can i get trial version for visual composer 7.0 or sap netweaver 2004. And what is the system requirement to install the visual composer. thanks Pooja

  • Pse 5 unable to save edits

    I have hade pse 5 for several years.  All of a sudden, I can't save edits.  I get error message, "Unable to save.  Computer error."  What to do?

  • How to find which custom program uses authorization checks

    Hi all, I have been asked to find out which custom ABAP program in our organization is using Authorizations checks and which is not. Since there are thousands of custom programs I will need to automatize this process somehow.  But I am not an ABAP ex

  • On-prem Lync voice and multiple O365 tenants

    Scenario: 2 companies sharing the same AD forest using FIM to sync each company to separate O365 tenants with on-premise Lync 2013 with voice.  Each company will have a different sip domains. Will creating 2 different dial plans and 2 hostedvoicemail