Announcement

Collapse
No announcement yet.

PHP in fragments?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PHP in fragments?

    I'm looking for a better way of placing PHP contact forms in fragments in brochure and store pages than using iframes.

    I've renamed the page to a .php extension and put the include in a fragment...

    Code:
    !!<
    <?php
      $GLOBALS['formOnly'] = true;
      include('http://www.v8bb.co.uk/forms/v8publications/20121128-c5e0/form.php');
      ?>
    >!!
    The include doesn't even show in the code so I'm guessing that either there's more I need to do or it's not possible. Any ideas?

    Malcolm
    ¤ The world wide web needn't cost the earth
    ¤ ARTISAN INTERNET LTD
    ¤ www.artinet.co.uk

    #2
    Sorted and working nicely. It turns out that the include didn't like the full URL for some reason.

    Malcolm
    ¤ The world wide web needn't cost the earth
    ¤ ARTISAN INTERNET LTD
    ¤ www.artinet.co.uk

    Comment


      #3
      Warning: Won't work if customer ends up on the page via the Search Results and you have selected Highlight Located Text. Reason: such pages are output by SearchScript.pl and will probably bypass the PHP parser on the server. Likewise for Business / logged-in customers if that's the type of site you're building.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Thanks, Norman, that's something to bear in mind.

        By the way, the add-ons are coming along slowly but surely in the demo store, http://www.artinet.co.uk/acatalog/demo.html

        Malcolm
        ¤ The world wide web needn't cost the earth
        ¤ ARTISAN INTERNET LTD
        ¤ www.artinet.co.uk

        Comment

        Working...
        X