Support » Fixing WordPress » How to imply php codes and Iframes

  • DevilsChild

    (@devilschild)


    Hey, I been trying all morning to figure out what I am doing. I made another page for a php code. When I made the page, I hit the html part for the script on making the page and entered the php code I wanted to use.

    When I add the include code, it doesnt show up. Nothing shows in preview, on the page it self or the window where I you edit things. I looked at the html and it’s there.

    So I went and made a php page ceprate from the script and the code works. So its something with the script/edit porstion where you creat the page I am thinking. NOT SURE!

    Code I was trying (I edited the page and put in text for the url)
    <? @include(“url to the page”); ?>

    Then I tried to call it a different way. Made a php code added the code above to it and in wordpress page editor I added, <!–#include file=”filename.php” –>

    Still nothing. Any help would be great. I was wondering if there is a way to edit the page without using the script editor at all. Maybe thats what is messing with the php codes? Not sure. But I can’t even find the page on the server to edit it. So I am at alost…

    I also tried to use an ifram command. Ceprate issue.. But When I add it, it works BUT the page is all messed up. The eiditor takes out the </iframe> that is after the code. So then it just ends the page after the iframe it self.

    I really don’t like this editor thing. I am thinking cause I was having so many problems with the Iframe, maybe the php code isnt working cause of it also?

    I really like wordpress. So any help would be great.

Viewing 6 replies - 1 through 6 (of 6 total)
  • <? @include(“url to the page”); ?>

    Two errors

    <?php … ?>

    And do not use url, use path.

    If you use functions in your php-code use include_once.

    DevilsChild

    (@devilschild)

    Not sure what you mean. <? php@include(“path”);?>

    is that what you mean? Tried it and didnt work. Both path to .php file I made and to the url of the script its self.. url is from a different server also. Not sure if that matters or not.

    You cannot implement a script from a different server as a script. Iframe is the right (and only) way then.

    DevilsChild

    (@devilschild)

    Then how do I close it? when I add the Iframe code,

    <iframe src=http://address_to_the_template></iframe>

    It re writes it to

    <iframe src=http://address_of_your_template>

    without the </iframe> and the page is all messed up or not complete

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    For an iframe, the correct form is this:
    <iframe src="http://address_of_your_page" />

    Note that the quotes and the ending /> are required.

    And if you have problems with the “pretty” editor, then I suggest turning it off. Go to your users page and look towards the bottom of the screen to disable the “visual rich editor”.

    I am having problems with my Iframes

    1. when I fill out my forms the page returns to the original iframe.index page and does not give the ”thank you for filling out this form”

    2. I am not receiving a reply via email when someone fills out the forms

    could anyone help me? the code reads like this:

    ?>
    <br>
    <span class=”style5″>Vielen Dank für Ihre Nachricht.</span><br>
    <? }else{
    // if page runs 1st time
    ?><?php /*?><?php */?>
    <input name=”Go” type=”hidden” value=”1″ >
    <br>
    <table class=”no_class” border=”0″ cellspacing=”0″ cellpadding=”0″>

    </table>
    </form>
    <? } ?>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to imply php codes and Iframes’ is closed to new replies.