Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1

    Question How do I inster PHP code into placeholder?

    I have a file webform.php that when clicked it open-up web form.

    How do I place this into placeholder when creating a site with Xara??

  2. #2
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: How do I inster PHP code into placeholder?

    That depends on what code this script produces.
    1. If it produces complete HTML page (with head and body sections), then you'll have to place it within the iframe in the placeholder.
    2. If it only produces HTML form element (or other not complete html file), then you have to use PHP include and export your page as PHP.
    John.

  3. #3

    Thumbs up Re: How do I inster PHP code into placeholder?

    Here is the CODE:

    Code:
    <Iframe src="PHP_FILE.php" width=100% height=100% frameborder=no scrolling=no></Iframe>
    thanks man!

  4. #4
    Join Date
    Apr 2010
    Posts
    19

    Default Re: How do I inster PHP code into placeholder?

    Or...
    <?php
    echo "yourcode";
    ?>

    export and rename extension of your index.html file to index.php

    when you export your website you can change the extension of your file to php, but w6 always save as .html (bug??)

  5. #5
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: How do I inster PHP code into placeholder?

    Quote Originally Posted by neodelito View Post
    when you export your website you can change the extension of your file to php, but w6 always save as .html (bug??)
    This was explained MANY times here. You can not change the extension of the firs page to anything except htm or html, but you can have any extensions you like for the rest of your pages. So if you don't want to have index.htm, simply leave the first page blank and give it blank.htm name or something, while give the second page name index.php or whatever you need.
    John.

  6. #6
    Join Date
    Apr 2010
    Posts
    19

    Default Re: How do I inster PHP code into placeholder?

    yep.. you have so reason..
    so a solution for that..
    i put in one placeholder in my first html
    Code:
    <meta http-equiv='refresh' content='X;URL=mypage.php'>
    X=delay time
    mypage.php= my custom php page.

    i understand

    "This was explained MANY" R: sorry..

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •