Can i enter php code into html snippets?

I am an sql/php newbie ... and have my site hosted by a company which offers me sql and php hosting (unlike dotmac I understand) ...
I have created an sql database on their server and have written a page in html/php to display the results of a simple search ... can I insert this into iweb page using snippet - as I have tried and get a page cannot be displayed message where the snippet box would be on the webpage. (you can see this by clicking on the guestbook link on www.antandcleopuss.com)
I am wondering if iweb can insert php or if it is only html?
If iweb doesn't like php inserts then I will have to export my pages to a folder, then open them in a text editor to insert the php there?? (seems like an awfully long way round)
Any help gratefully received
ant

You can add PHP code AFTER publishing the webpage.
Then change the extension to .php.
Here's a page the explains how to do it. It's not PHP specific but the routine is the same.
http://web.mac.com/wyodor/Ajax/
Of course you can add a PHP page to the HTML Snippet with an iframe.

Similar Messages

  • Fluid grid for Wordpress: insert PHP code into DW or DW code into Wordpress?

    This may be a stupid question but it's a dilemma for me. Here's the problem. I want to create a mobile first, fluid grid Wordpress website in Dreamweaver CS6 based on an existing Wordpress theme. I can see two ways of doing that:
    1) Create a fluid grid layout in DW, then insert the Wordpress PHP code into the right places in DW
    Pro: the fluid grid layout is set up by DW and therefore can be easily edited with DW (I imagine)
    Con: It is beyond my coding skills to make a fully functional WP template
    2) Take an existing responsive Wordpress template with media queries and edit that in Dreamweaver
    Pro: I start with a fully functional WP template and only have to make changes (mostly in CSS) to customise it
    Con: When I start with an existing template (like Skeleton) I run into trouble using DW
    For example: I click a navigation button to get at the CSS but it's not clear to me from DW's interface in which media query I have to make changes. I did a tutorial on creating a fluid grid layout with DW so I can do that. But DW doesn't work the same way with an existing WP template like Skeleton. I searched the web but all I can find is help on creating a fluid layout with DW, not editing an existing one.
    By the way, I am experienced with HTML/CSS but not PHP and I have a local Wordpress server running on my Mac so I can work in Dreamweaver's Live View.
    The problem may be that I am only just starting with responsive web design and need some more experience with media queries, css rules and DW CS6. Could anyone comment on this problem or point me towards more information on the subject?
    TIA!

    You can certainly use DW to customize a 3rd party WP Theme.  However, you must be throughly familliar with how WordPress Themes work and have a good working knowledge of  HTML, CSS and PHP code.  Design View will not be much help to you. 
    WP Themes are a sum of their various parts:  header.php, footer,php, sidebar.php, page.php, index.php, archive.php, etc...  The web server parses code from the various parts and creates whole pages on the fly.  Once WP is deployed on your server, you cannot use DW to edit content.  You must use the WP Admin Panel (CMS) to manage content, Themes, plugins and backup data.
    For simple static sites, the FluidGrid Layout feature in DW is a nice starting point.  But these layouts have definite  limitations which, IMO would not be a good fit with WordPress.
    Nancy O.

  • Trying to load flash file in iWeb and when I enter info in the "html snippet" box a "missing plug-in" message comes up (although i have adobe flash player in, if that's the plug-in they're looking for). Anyone have any similar problems or solution. Thanks

    I'm trying to load flash file in iWeb and when i enter info in the "html snippet" box a "missing plug-in" message comes up (although i have Adobe Flash player installed, if that's the plug-in they're looking for). Anyone have any similar problems or solutions. Thanks

    when i publish my site and vew it the page on the web it just comes up with the file name w/ the ,swf and the "mising plug-in" message below. if i click on the file name it displays the flash file but gigantic (the entire height of the page).totally perplexed!
    anyway, here is the code.
    <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0, 40,0”width=”244” height=”221” id=”ETrade_banner_Gumby_replay”><paramname=movie value=”ETrade_banner_Gumby_replay.swf”><param name=qualityvalue=high><param name=base value=”.”><embed src=”ETrade_banner_Gumby_replay.swf”quality=high width=”244” height=”221” name=”ETrade_banner_Gumby_replay”align=”” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”base=”.”></embed></object>

  • How can i rewrite this code into java?

    How can i rewrite this code into a java that has a return value?
    this code is written in vb6
    Private Function IsOdd(pintNumberIn) As Boolean
        If (pintNumberIn Mod 2) = 0 Then
            IsOdd = False
        Else
            IsOdd = True
        End If
    End Function   
    Private Sub cmdTryIt_Click()
              Dim intNumIn  As Integer
              Dim blnNumIsOdd     As Boolean
              intNumIn = Val(InputBox("Enter a number:", "IsOdd Test"))
              blnNumIsOdd = IsOdd(intNumIn)
              If blnNumIsOdd Then
           Print "The number that you entered is odd."
        Else
           Print "The number that you entered is not odd."
        End If
    End Sub

    873221 wrote:
    I'm sorry I'am New to Java.Are you new to communication? You don't have to know anything at all about Java to know that "I have an error," doesn't say anything useful.
    I'm just trying to get you to think about what your post actually says, and what others will take from it.
    what does this error mean? what code should i replace and add? thanks for all response
    C:\EvenOdd.java:31: isOdd(int) in EvenOdd cannot be applied to ()
    isOdd()=true;
    ^
    C:\EvenOdd.java:35: isOdd(int) in EvenOdd cannot be applied to ()
    isOdd()=false;
    ^
    2 errors
    Telling you "what code to change it to" will not help you at all. You need to learn Java, read the error message, and think about what it says.
    It's telling you exactly what is wrong. At line 31 of EvenOdd.java, you're calling isOdd(), with no arguments, but the isOdd() method requires an int argument. If you stop ant think about it, that should make perfect sense. How can you ask "is it odd?" without specifying what "it" is?
    So what is this all about? Is this homework? You googled for even odd, found a solution in some other language, and now you're just trying to translate it to Java rather than actually learning Java well enough to simply write this trivial code yourself?

  • Can I enter an image into a form on Adobe Forms Central?

    Can I enter an image into a form on Adobe Forms Central?

    Yes, you can add an image to a form design using the toolbar button highlighted below:

  • How can I add advertisement code into flash game?

    hi mates,
    just want to ask about loading advertisement code!
    How do you add the advertisement code (adsense) into flash games??
    my site Funny Games have over 5k games but they are getting from others sites thus I have no original files. How can I add more code into the current files?

    Unless the games were pre-made to allow you to specify some variables in the page code or some external file, you won't be having any luck... you cannot add code to the games unless you have the source files, which you apparently don't have.

  • HT1212 my i phone screen is broken and i can not enter my code

    my i phone screen is broken and i can not enter my code but i need to sync my phone from my husbands computer so that i can save all my info before getting a new phone.  is there a way i can enter or disable my password code so that i can sync my phone?  if not is there any other way to sync my broken phone so that i dont loose everything?
    Thank you for any help you can give!!

    i do sync it usualy but im on vacation, so i guess i may just loose those pics.  one more question,  can i have my screen repaired and then get the info off or is it to broken?  the screen is cracked and has green and black stripes all over it. 
    Thanks again!

  • Inserting Script code into HTML - possibly using snippets?

    I am using Robohelp 7 and I need to insert some tracking script code into the HTML.
    The location needs to be right before the body close code.
    I have multiple pages and would love to use a snippet so that it would be easy to update as necessary.
    When I create the snippet code and drop it on the design page, it shows the code.
    I cannot get it to drop into the HTML.  Any suggestions?
    If it can't be done with snippets, is there a way to mass import code into the HTML of ALL pages?  I'm talking hundreds of pages.

    Hi there
    I doubt you will want to use snippets for this. Why? Well, if you use Snippets, you will need to edit all your pages so they include the snippet!
    So here's how I might approach it.
    Open the Project Set-up pod. Create a Topic Template. Inside the Template, add a Footer. Insert the script into the footer. Save the template and apply it to all your topics. You do this by selecting all topics in the Topic List pod, right-clicking them and choosing the Template. Whoosh! The template is associated and all topics now have a footer (with the script inside).
    Hopefully this helps... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Write PHP code above HTML tag

    I've created a toolset that allows me to add Form fields that
    we use in our system. But now I want to take that a step further. I
    want to be able to write corresponding PHP code above the HTML tag
    at a specific location. This while looping through the formfields
    in the form and dynamically write the INSERT and/or UPDATE query.
    The last bit I can probably figure out. What I would like to
    know is how to write the code above the HTML tag between <?
    ?> or with a search/replace of the INSERT or UPDATE line in the
    code.
    Can anyone give me some hints or tips on this?
    Thanks in advance!

    Hi Bahare,  
    The <script> tag is used to define a client-side script, such as a JavaScript.
    The <script> element either contains scripting statements or it points to an external script file through the src attribute.Common
    uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
    You should write C# code inside asp.net (C#)(.cs).page. For more infomation,Please check
    http://msdn.microsoft.com/en-us/library/vstudio/k33801s3(v=vs.100).aspx
    In addition,
    This forum is to discuss problems of C# development.
    You'll need to post it in
    ASP.NET forum for more efficient responses, where you can contact ASP.NET experts.
    Best Regards,
    Kristin

  • Adding Statcounter code with HTML Snippet

    On an earlier thread, someone posted a message that they could add the Statcounter code using an HTML Snippet. Does anyone know how to do that (and make sure it gets put in the right location)?
    Thanks,

    You can add statcounter using HTML Snippet.
    but if you need statcounter to track different pages then HTML Snippet will give you bad results.
    Because when you add statcounter code or any code for that matter, iweb adds the code to another page aka widget(#)_markup.html and links these pages to you target pages by way of iframe element. (unless iweb'09 does thing differently, but I doubt it)
    example: let say you have twenty pages and add statcounter to each of them, you will see the results point to widget(#)_markup pages and not your page URL.
    You came get away with all that if you know javascript (statcounter code is javascript).
    I've been doing this for years, here is my example: http://home.cyclosaurus.com/Welcome.html
    scroll all the way to the bottom, see that iweb look-a-like hit counter? it's a statcounter!
    So, how are you with javascript?

  • How to enter printer code into new eprint acount. first acount was deleted. (photosmart 7510)

    I eneterd my printer code into my eprint account, then mistakenly deleted the account. I set up a new account, but now I can't add the printer. I get the message "invalid code". The printer is a photosmart 7510.

    You may need to disable and then enable Web Services from your printer to get a new printer code and then register that code.
    I am an HP employee

  • Can I use PHP code in BC

    Yes, that is basically my question. Can I use php coding in Business Catalyst? And does BC us mysql database?
    Thank you

    Hi there, Please do a quick forum search before posting. This is asked a lot - You can even see a post in the frequently asked questions panel on the main page of this forum section.
    BC is a SAAS - Software as a service and a .Net based SQL system - It does not use PHP or mysql and you can not access the server side code.
    So to your question - that is a no I am affraid.

  • IOS7 setup: Can't enter PIN code

    I had a black-screen issue with my iPhone 4s, and had to reset it. After the reset was done, I got my phone to start up the setup-process (just like when you geet a brand new phone), but i accidently hit the pass button once the "enter SIM"-dialogue popped up. Now I can't enter the SIM's PIN code anywhere, and my phone is useless. I can't enter it on the phone, nor iTunes. What can I do?
    I already tried the following:
    Restarting the phone
    Forcing restart by holding the 2 buttons
    Restarting the process
    Calling a number (I can't because the sim is not unlocked)
    Ejecting the sim card
    Connecting to iTunes (on 2 seperate computers)
    Any ideas?

    These are your choices: 1. Get a new sim, without a sim pin; 2. Remove your sim, insert in another phone & remove the sim pin, then re-insert in your phone.

  • Can not enter printer code

    i am trying to sign up but getting a message saying "system error"
    meaning i can not enter my printer code

    Hello hamutal,
    Welcome to the HP Support Forums.  I gather that you are unable to get to the HP Connected or HP ePrintCenter web site to enter the printer’s claim code.
    HP Connected has only been rolled out to the USA, the UK, France and Germany.  The link will use your computer to reflect your country and language settings, so if you live outside of the countries that have HP Connected you will get a server error message.  If you live outside those countries, please try going to HP’s ePrintCenter web page.  The link is https://www.eprintcenter.com.
    You can reprint the web services information sheet with the claim code to reactivate it for another 24 hours.  If you are unsure how to do this, I’ve included the Getting the Printer Claim Code document for reference.
    If I have misunderstood, please let me know.  In the next post, please also include the following information:
    What make/model/product number of HP printer do you have? How Do I Find My Model Number or Product Number?
    How is the printer connected (USB cable, ethernet, or wireless)?
    What operating system are you using on your computer? whatsmyos.com
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Acrobat crashed - can't enter Javascript code anymore!

    I just had Acrobat (8.1.2) crash on me while I was working on the Javascript code I had in the file. When I opened the file after the crash, the javascript code was empty - everything had been obliterated in the code module. And even when I enter new code and close the editor, when I try to open it again, it's empty again.
    I have Acrobat set to use an external app (I am using TextWrangler on a mac), so I don't know if that has any bearing on what happened, but the file now seems to be corrupted as any code I enter whether in an external app, or in the Acrobat javascript editor does not get saved. I tested the file on another computer, with the same results. Other files work properly on my computer.
    Is there any way to recover the code from the file? I had spent several hours on several parts of the code, and am not looking forward to having to recreate my work.

    Read "KT6-LSR and installing Windows on SATA" post (At this moment is the last in this page). There you'll find many posts about Raid problems.  8)

Maybe you are looking for