Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter spaterson1

    (@spaterson1)

    Alright, so this post is related to my question:

    https://wordpress.org/support/topic/if-statement-4?replies=3

    but it implies that this shouldn’t work:

    <iframe style=”position: relative;top: 90px;left: 25%;” name=”iframe” height=”385px” width=”500px” src=”http://192.168.0.152/processreal.php?title=%5Binsert_php%5Decho $title; [/insert_php]&stitle=[insert_php] echo $stitle; [/insert_php]”></iframe>

    But it does work.. it works fine…. What is going on here?

    Plugin Author WillBontrager

    (@willbontrager)

    spaterson1, in your first example, the if/else block is broken up. Test this on a page (only this, as this is the content of a block of code between [insert_php] and [/insert_php] tags):

    <?php
    if ($paypal == "true") {
    } else {
    ?>

    You’ll see that you get an error message. If a block of code between [insert_php] and [/insert_php] won’t work by itself on a separate web page, then neither will it work in InsertPHP.

    In your second example, the code is complete. Test it on a separate page like this:

    <?php echo $title; ?>

    It works, therefore the code in that block is complete.

    Will

    Plugin Author WillBontrager

    (@willbontrager)

    Gratuitous post in order to mark thread resolved.

    Plugin Author WillBontrager

    (@willbontrager)

    Gratuitous post in order to mark thread resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘500 error’ is closed to new replies.