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 trialCoskun Olcucu
4,562 Pointsmy paypal button doesn't work.
When i hit the button ,i am getting error message.Even though i created the button as it was directed.
Ted Sumner
Courses Plus Student 17,967 PointsYou need to post your code to get any meaningful help. Please refer to the Markdown Cheatsheet for formatting instructions.
The PHP course may be difficult if you do not have a strong background in HTML. Depending on your experience, the Front End Web Design or the Web Development tracks may be a better place for you to start.
2 Answers
Coskun Olcucu
4,562 PointsHere is my paypal code:
<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 $product["paypal"] ?>"> <input type="hidden" name="item_name" value="<?php $product["name"] ?>"> <table> <tr> <th> <input type="hidden" name="on0" value="Size"> <label for="os0">Size</label> </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> </table> <input type="submit" value="Add to Cart" name="submit">
</form>
Coskun Olcucu
4,562 PointsError Detected
Error Message Some required information is missing or incomplete. Please correct your entries and try again.
I filled out all of the required fields,but still button doesn't work.
Coskun Olcucu
4,562 PointsCoskun Olcucu
4,562 Pointswhat other information should i fill out to get it work?