Using PHP in a dreamweaver site? Help!

Hello,
I have a question in regards to using a PHP script in my
website. Do I have to convert the page away from XHTML? If there is
anyone that could help I would be very grateful.
Thanks a million!!!
John

PHP is a server scripting language. HTML is something
rendered by a local
browser. The two never intersect! So, as David says, no....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"jbravo1224" <[email protected]> wrote in
message
news:f2aknv$560$[email protected]..
> Hello,
>
> I have a question in regards to using a PHP script in my
website. Do I
> have to
> convert the page away from XHTML? If there is anyone
that could help I
> would be
> very grateful.
>
> Thanks a million!!!
>
> John
>

Similar Messages

  • Using PHP files in Dreamweaver?

    When I create a new PHP file in Dreamweaver the code is the same as an HTML file, shouldn't be different? with php commands or something?
    Thanks

    When I create a new PHP file in Dreamweaver the code is the same as an HTML file, shouldn't be different? with php commands or something?
    Not unless you add them.  PHP is a server-side programming language.  PHP web pages are no different than HTML pages except that they can parse data on the server.  With the right include statements or commands, PHP or ASP pages can publish information from server-side databases to form a dynamically driven web site.
    BUILDING DYNAMIC SITES in DW
    Set up a local testing server in Adobe Dreamweaver CS4
    http://www.adobe.com/newsletters/edge/december2009/articles/article2/index.html
    Setting up a PHP development environment for Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_05.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.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Reading PDF using PHP

    Is there any way to read PDFs using PHP? Would appreciate the help.
    Thanks,
    Jyotsna

    Hi Olaf,
    We have a question paper in PDF. We wanted to read each question from that PDF and save it in a database. Is there any PHP library or module which allow us to do sublayering kind of thing on PDFs ?
    Thanks,
    Jyotsna

  • CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?

    When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective.  I cannot use the server behavior.  I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want.  I cannot change that except in the server behavior, so I'm stuck.  I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case.  I will appreciate any suggestions!  Is there any way to embed a call to a target page manually?  All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page.  That'll drive a user bonkers!
    Thanks!
    Delete Record in CS6 Dreamweaver using PHP & MySQL?

    Well, your error message is self-explanatory.
    DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
    I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
    http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
    Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
    Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
    Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
    It should work as expected.
    If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
    Let us know how it goes.
    -ST

  • Using PHP with Dreamweaver and Contribute

    I work for a small to medium government agency and we are re-vamping our website. Money and staff are very minimal here, so any hope of one or two full-time people managing the entire website, or of purchasing a content management system, are totally out of the question.
    My question is: for a group of people that are capable of using either Adobe Contribute or Dreamweaver in Design View only, are there any disadvantages or problems with using PHP?
    Here's more detail: In our situation, we really don't have the choice of editing straight HTML code, since many of our users would not be capable of doing so. If we could afford a full-time web person, that would be an option, but that's not possible at this point. Some of our users are going to be limited to using Adobe Contribute as well, which is a simpler option for some of the less-experienced users. Nonetheless we want our site to have a professional and consistent look, so  a technology like PHP would allow us to repeat content across many websites. By the way, that's all we'd be using PHP for as far as I know; just to enable me to edit a single page and thus change the navigation content across the whole site.
    Does anyone know of a reason why we couldn't build the site using very simple, limited PHP and allow people to edit it using Dreamweaver design view and Adobe Contribute?
    Thanks for any thoughts or suggestions that you can provide!
    P.S. We have also considered Dreamweaver templates, and so far that isn't working, due to the multi-login setup that we have.
    P.S.S. Although I do decently in HTML and CSS and a teeny bit of JS, I know nearly nothing about PHP, other than this:  <?php include("header.php"); ?>

    You can use that extension if you like. You need to make sure that your page that has the SSI have an extension that will process the scripts as mentioned above.
    .shtml, .php
    I always name my SSI so I know that they are includes.
    header.inc.html
    header.inc.php
    header.inc.txt as examples.
    If you are using PHP, then it should process the includes.
    A good simple test is to add a SSI to a page.
    Do something simple like.
    <p>Welcome to our website</p>
    Name it welcome.inc.php
    Then include it in a page, upload it to the webserver and visit the page.
    I am using contribute for people to update areas of our website (hate it) and I manage the overall website myself.

  • I NEED HELP! Making a flash email form using php.

    Hi, my name is Sean, I'm making a flash contact form using php for a website.
    I'm having a hard time with the php. Can some one help?
    Click here to download my source.

    Satellite A505-S6005 
    ACPI Flash BIOS version 1.40 for Satellite A500/A505 (PSAT6U/PSAT9U)
    When you execute the download file (sat6v140.exe) it decompresses into several files in the sat6v140 folder. 
    Among those, is the readme.txt attached, which explains how to create the CD.
       Burn a CD or DVD from an ISO file
    -Jerry
    Attachments:
    readme.txt ‏14 KB

  • Why this site used php files in all the pages?

    Hola
    I download my friend's site and ALL the pages are in a folder with the file name index.php ... WHY?
    Example;
    Name of folder; gallery
    Inside this folder, a file with the name index.php
    Name of folder; contact
    Inside this folder, a file with the name index.php
    It has an "includes" folder with files for ;
    header.php, footer.php, content.php and functions.php
    and so on.
    Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    what is the purpose of using php in every single page?
    I have to tell you that my friend has a program call CKeditor and CKfinder to
    edited her website.
    Not sure if this is the reason why this site has been coded all of it with php files.
    I'm waiting impatiently for your responce

    >Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    >what is the purpose of using php in every single page?
    The reason for using php extension or not has absolutely nothing to do with the size of the site. If the site uses dynamic pages, then the page need a dynamic page extension. Even sites without dynamic pages often use .php in anticipation of using them so the file names won't need to be changed down the road.
    Now, if your question is more about why they created separate directories for each page, it's probably so the url's can be accessed without including the file extension, Ex
    example.com/contact
    instead of
    example.com/contact.php

  • Hi guys, my ipad2 says that it needs to cool down before using. It has been sitting in a cool place over a day now but the message still pops up. Any other ideas? or help?

    Hi guys, my ipad2 says that it needs to cool down before using. It has been sitting in a cool place over a day now but the message still pops up. Any other ideas? or help?

    Is the iPad Off and not connected to the charger?
     Cheers, Tom

  • Dreamweaver CS5 using PHP to connect to Postgres

    Started learning Dreamweaver using PHP to connect to mySql and dynamically load data into a table on my web page.  Dreamweaver worked great as I didn't have to enter any PHP.  Now trying to use PHP to connect to a Postgres DB.   Does Dreamweaver CS5 support PHP connection to Postgres like it did mySql?   Or do I need to enter the PHP commands  to connect and access the Postgres myself rather than rely on Dreamweaver (which I did for mySql)?

    PHP/Postgres is not a supported server model in DW. You'll need to code by hand, or try to find an extension. Try posting over at the Postgressql forums.

  • Need help: enter flash file in Dreamweaver site with dark background

    Hi,
    I've entered a SWF in a dreamweaver site with a dark blue
    background. When you view the site in a browser there is a white
    square (the size of the flash file) that flashes up for a second
    before the file starts loading. This is rather ugly and I was
    wondering if anyone knew how to avoid this white square from
    flashing up.
    I already tried making the table background dark blue and
    adding a dark blue square as a background image, but that has not
    made any difference.
    If you'd like to see what it does, this is a link to one of
    the pages: www.billmather.co.uk/portraits.htm
    Thank you in advance for any help or advice you can give me!

    Hi Horus,
    Thank you for getting back to me. I found it, and tried it.
    But still does not seem to make a difference. This is what the code
    in dreamweaver now looks like:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','850','height','660','src','flashFilesBill/landscapes','quality','high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','movie','flashFilesBill/landscapes'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="850" height="660">
    <param name="bgcolor" value="#000033" />
    <param name="movie"
    value="flashFilesBill/landscapes.swf">
    <param name="quality" value="high">
    <embed src="flashFilesBill/landscapes.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="850"
    height="660"></embed>
    </object>
    Did I enter it correctly? (I also tried it as <param
    name="bgcolor" value="#000033"> but that did not work either) Or
    do we still need to find another solution?
    Thanks ever so much for all your suggestions and ideas. I
    truly appreciate it.

  • PLEASE help with server-side form validation using PHP!!!

    I feel like im going round and round in circles with this, after looking into all sorts of server-side advice i've come to the conclusion that i want to validate my form using server-side validation with PHP.
    So my form has several drop down menu's and  textareas  (not all of them need validation). For the part of my form i would like to validate, all i want is the drop downs to have to be changed/selected. So just a simple message like "You must select an option" if customers haven't done so. For the textareas, they just need to be filled out, so a message like "Information required" to come up if customers haven't done so.
    I believe i need to create a PHP page say for example 'error.php' place  the validation code in there and set this part of the the form to -
    <form name="product"form action="error.php" method="post" class="product_form">
    BUT im getting really confused with creating the code for the error.php. Please please can anyone help me with this!!!???
    Here are the drop down menu's i need validation on, error message being "You must select an option",
    "figurine"
    "engraving"
    "font"
    and here are the textareas that need validating, error message "Information required",
    "test"
    "Name"
    "house"
    "line_1"
    "line_2"
    "county"
    "postcode"
    "tel"
    www.milesmemorials.com/product-GK1.html
    I'd really appreciate any help!!!

    Ness_quick wrote:
    Great thats good enough for me. In that case, would you please be able to help me create the javascript for the above validation?? If you could just help me create it for this page i can amend it for all the other pages. I'd really really appreciate it!!!
    Can you follow the below example?? Obviously AFTER validation has been successful you need to collect the information from the form and send it to the recipient email address...that's where you can use php. I'll check back tomorrow and see how you are doing.
    <!DOCTYPE HTML>
    <html><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Form validation</title>
    <!-- VALIDATE ORDER FORM  -->
    <script type="text/javascript">
    <!--
    function RequiredFormFields() {
        // inform customer to provide figurine choice
    var figurine = document.forms.product.figurine.value;
    if (figurine == "-- Select figurine --")
    alert("Please provide figurine choice");
    return false;
    // inform customer to provide engraving choice
    var engraving = document.forms.product.engraving.value;
    if (engraving == "-- Select engraving --")
    alert("Please provide engraving choice");
    return false;
    // inform customer to provide font choice
        var font = document.forms.product.font.value;
    if (font == "-- Select style --")
    alert("Please select font style");
    return false;
    // inform customer to provide their name
    var Name = document.forms.product.Name.value;
    if (Name == null || Name == "")
    alert("Please provide your name");
    return false;
    // inform customer to provide their house number/name
    var house = document.forms.product.house.value;
    if (house == null || house == "")
    alert("Please provide your house number/name");
    return false;
    } // end function
    -->
    </script>
    </head>
    <body>
    <form name="product" form action="processForm.php" method="post" class="product_form" onsubmit="return RequiredFormFields()">
    <p class="product_form_options">Choice of Figurine<br>
    <select name="figurine" class="productButton" id="figurine" onChange="Recalculate()">
    <option selected>-- Select figurine --</option>
    <option value="7031">Tropical Green Granite with bronze sacred heart figurine as pictured(&pound;7031)</option>
    <option value="5216">Tropical Green Granite with bronze effect sacred heart figurine (&pound;5216)</option>
    <option value="5216">Tropical Green Granite with reconstituded figurine MF122(&pound;5216)</option>
    </select>
    </p>
    <p class="product_form_options">Engraved Lettering<br>
    <select name="engraving" class="productButton" id="engraving" onChange="Recalculate()">
            <option selected>-- Select engraving --</option>
            <option value="2.30">Sandblast and enamel painted (&pound;2.30/letter)</option>
            <option value="2.80">Sandblast and guilded (&pound;2.80/letter)</option>
            <option value="2.20">Maintenance free (&pound;2.20/letter)</option>
            <option value="3.73">Traditionally hand cut and enamel painted (&pound;3.73/letter)</option>
            <option value="3.98">Traditionally hand cut and gilded (&pound;3.98/letter)</option>
            <option value="4.34">Raised lead and enamel painted (&pound;4.34/letter)</option>
            <option value="4.59">Raised lead and gilded (&pound;4.59/letter)</option>
          </select>
    </p>
    <p class="product_form_options">Letter/Font Style<br>    
          <select name="font" class="productButton" id="font" >
               <option selected>-- Select style --</option>
               <option value="Maintenance free">Maintenance free </option>
               <option value="White painted block">White painted block</option>
               <option value="White painted roman">White painted roman</option>
               <option value="White painted Script">White painted Script</option>
               <option value="White painted Celtic">White painted Celtic</option>
               <option value="White painted Nova">White painted Nova</option>
               <option value="Sliver painted block">Sliver painted block</option>
               <option value="Sliver painted roman">Sliver painted roman</option>
               <option value="Sliver painted Script">Sliver painted Script</option>
               <option value="Sliver painted Celtic">Sliver painted Celtic</option>
               <option value="Sliver painted Nova">Sliver painted Nova</option>
               <option value="Gold leaf painted block">Gold leaf painted block</option>
               <option value="Gold leaf painted roman">Gold leaf painted roman</option>
               <option value="Gold leaf painted Script">Gold leaf painted Script</option>
               <option value="Gold leaf painted Celtic">Gold leaf painted Celtic</option>
               <option value="Gold leaf painted Nova">Gold leaf painted Nova</option>
               <option value="Gold leaf painted Old English">Gold leaf painted Old English</option>
             </select>
             </p>
             <p>
    <p>Name<br>
    <input name="Name" type="text" id="Name" value="">
    </p>
    <p>House name or number:<br>
    <input name="house" type="text" id="house" size="67">
    </p>
    <p>
    <input name="submit" type="submit" class="place_order" id="submit" value="Place order">
    </p>  
    </form>
    </body>
    </html>

  • I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please iPhone 4, iOS 7.0.3

    I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please
    iPhone 4, iOS 7.0.3

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • I have business catalyst website imported in Dreamweaver. But I am unable to find or use database for it. Please help me into this

    I have business catalyst website imported in Dreamweaver. But I am unable to find or use database for it. Please help me into this

    You might find better help here: Dreamweaver & Business Catalyst
    Additional Info: Dreamweaver Help | Dreamweaver-Business Catalyst integration

  • Using Contribute on a non-Dreamweaver site.

    A client wants to use Contribute 3 for CMS on a site I have built with Brand-X software and hand coding.  This is not a Dreamweaver site.
    I have found and tested the following code, posted in 2007 by ThinkInk -
    ----------------------------------- example code ----- see body tag for editable code------
    <body>
    <!-- InstanceBeginEditable name="content" -->
    editable content
    <!-- InstanceEndEditable -->
    </body>
    </html>
    This gives a titled, highlighted box around the html marked, but leaves all items on the page selectable, html editable and most imges deletable.
    Can someone provide a sample of code that could be added to areas that should not be edited?

    Hi, Light,
    Oh, you're fine with being secretive. I don't actually want to know what software you are using, because it doesn't make any difference to me! I don't have experience with other softwares and can't offer any wisdom that way!
    Regarding the CSS pages, make sure that the external CSS files are properly linked to your Template files. If you are looking at a Template page with properly linked CSS files, you should see them in the CSS Styles Panel...both the files and a list of the styles therein. You also should see that your html pages look correct.
    Don't make Templates of the CSS files; they need to be CSS files, not Templated pages.
    If your CSS files are named with the .css extension and linked, they should show up in the CSS Styles Panel. If the files are well-formed, but don't carry a .css extension, you might make new pages File > New > New Document > CSS and create a new file for each, pasting in your CSS declarations just under the
    @charset "utf-8";
    /* CSS Document */
    at the top of the file. Then make sure each file is properly linked to the appropriate Template pages.
    Make sure, after you have fixed up the CSS files and the Templates, that you propagate the changes...save each Template file and answer yes, when you are asked if you want to update the files. If any of those files are open in the Document Window, after you have Saved the Template you will need to Save All again, to save the individual pages.
    Then upload to your server. <Grin>
    Z

  • Need Help importing data using PHP to convert it into a single HTML line

    Hi, My names Chance
    I'm a 2nd year web design student and have been assigned a project by my teacher for a charity website
    i found a tutorial of exactly what i need to do but im stuck on creating a script to import  and convert php data
    to a single html line
    heres the link to the the script, if you scroll down to the bottom
    where it says
    RSS or XML Data Source
    "The scrolling text can be imported from any source: RSS, XML or any other format.
    For example, if you want to import data using PHP to convert it into a single HTML line to be displayed by the ticker, create a php script to import and convert the data, and include it directly in the DIV tag as follow"
    this is what i need help doing
    http://www.mioplanet.com/rsc/newsticker_javascript.htm
    i already have the php code that i want to import
    i just need to know how to import and convert my php script so im able
    to make the the javascript from the link i provided to work
    thank you so much for your time
    if you have any question or answer please email me
    [email protected]
    thanks again hope to here from you soon

    Hi
    The instructions are there on the page you provided a link to!
    What is it you do not understand?
    PZ
    www.pziecina.com

Maybe you are looking for