Forum Replies Created

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

    (@windypoint)

    Thanks for the replies! I’ll post how it goes.

    Thread Starter WindyPoint

    (@windypoint)

    I found it!

    <?php echo do_shortcode('[catlist id=1 numberposts=5)]'); ?>

    Okay that works

    Thread Starter WindyPoint

    (@windypoint)

    I am sorry, I must have been unclear. The first code is an example that makes sense to me and how html data should be sent to php. The code I am using is the second set. In it, there is no “action=” part. Actually, the entire html code seems to not mention any php file. I do not know how to find out where the data is sent with my situation in the second code set. This second set is actually being written by woocommerce (not me) and is working.

    Thread Starter WindyPoint

    (@windypoint)

    I see. It sounds like the PHP server-side script should then have SQL commands in it, to write new data to the database. Right?

    I am trying to find out which PHP file gathers the HTML data. In an example I found:

    <form method="post" action="claim.php" name="ClaimForm" id="ClaimForm" autocomplete="on">
        <fieldset>
            <legend>Contact Details</legend>
            <div>
                <label for="firstname" accesskey="U">Your First Name</label>
                <input name="firstname" type="text" id="firstname" placeholder="Enter your name" required />
            </div>

    etc…

    In that first line it mentions the PHP file as claim.php However, the woocommerce plugin is missing that action field:

    <form method="post">
        <h3>
            Billing Address
        </h3>
        <p id="billing_country_field" class="form-row form-row-wide address-field update_totals_on_change validate-required"></p>
        <p id="billing_first_name_field" class="form-row form-row-first validate-required">
            <label class="" for="billing_first_name">
                First Name
                <abbr class="required" title="required">
                    *
                </abbr>
            </label>
            <input id="billing_first_name" class="input-text" type="text" value="John" placeholder="" name="billing_first_name"></input>
        </p>

    etc…

    My question then is how to hunt this down. It seems like the environment is working just as you say, but I can not trace it.

Viewing 4 replies - 1 through 4 (of 4 total)