Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Adding additional info to a paypal form

i am tryin to add another drop down and text area so the values appear when the user is directed to the paypal form to confirm there purchase but neither of these are showing up once the user is directed to the payment page for paypal can someone help here is what i am using

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
                        <input type="hidden" name="cmd" value="_s-xclick">
                        <input type="hidden" name="hosted_button_id" value="<?php echo $product["paypal"]?>">
                        <input type="hidden" name="item_name" value="<?php echo $product["name"]?>">    
                        <table>
                        <tr>
                            <th>
                                <input type="hidden" name="on0" value="Sizes">
                                <label for="os0">Sizes</label><br>

                            </th>
                            <td>
                                <select name="os0" id="os0">
                                    <?php foreach($product["sizes"] as $size) { ?>
                                    <option value="<?php echo $size?>"><?php echo $size?></option>
                                    <?php } ?>
                                </select>
                            </td>
                        </tr>

                            <tr>
                            <th>
                                <input type="hidden" name="on0" value="Style">
                                <label for="os0">Style</label><br>

                            </th>
                            <td>
                                <select name="os0" id="os0">
                                    <?php foreach($product["styles"] as $style) { ?>
                                    <option value="<?php echo $style?>"><?php echo $style?></option>
                                    <?php } ?>
                                </select>
                            </td>
                        </tr>

                        <tr>
                            <th>
                                <input type="hidden" name="on0" value="Message">
                                <label for="os0">Message</label><br>

                            </th>
                            <td>
                                <textarea name="os0" id="os0" placeholder="Gift Message"></textarea>
                            </td>
                        </tr>

                        </table>
                        <input type="submit" value="Add to Cart"  border="0" name="submit">
                    </form>