Support » Plugin: Woody ad snippets - Insert Header Footer Code, AdSense Ads » In [insert_php] trying to create a simple input form

  • Hi the code below does not work with in [insert_php] plugin.
    Please help.
    I manged to get other HTML code workin with in [insert_php]

    echo “<form>”;
    echo “<select name=”Department”>”;
    echo “<option value=”First Name”>First Name</option>”;
    echo “<option value=’Last Name’>Last Name</option>”;
    echo “</select>”;
    echo “<input type=’submit’ value=’Submit’>”;
    echo “</form>”;

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    I’m sorry, Pam, but “does not work” is no help to me at all.

    What does it do that you think it should not?

    What does it not do that you think it should?

    What are the error messages, if any?

    Thanks!

    Will

    Sorry i should make it clearer,
    the code should produce a drop down list as part of selection criteria for a contact list, some thing like
    `Department’ with a drop down option of Firstname/Lastname and a Submit button.

    Rest of the Html/php code works fine with in insert_php giving me a table of contact list.

    Thank you in advance.

    Plugin Author WillBontrager

    (@willbontrager)

    OK.

    If you’ll put your code into a stand-alone PHP page and type its URL into your browser, you’ll find the errors.

    <?php
    echo "<form>";
    echo "<select name="Department">";
    echo "<option value="First Name">First Name</option>";
    echo "<option value=’Last Name’>Last Name</option>";
    echo "</select>";
    echo "<input type=’submit’ value=’Submit’>";
    echo "</form>";
    ?>

    When it runs OK in the stand-alone page, it should run OK with Insert PHP. It’s a great debugging technique.

    Will

    • This reply was modified 2 years, 11 months ago by WillBontrager.
    • This reply was modified 2 years, 11 months ago by WillBontrager.

    Thank You .
    Works fine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘In [insert_php] trying to create a simple input form’ is closed to new replies.