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

General Discussion

Paypal: User Input > Submit > Payment info > Submit payment > Email

I'm having a horrible time trying to get my head wrapped around how to pass user input information along with Paypal so that we can keep track of who's paying their ads. My method is simple in my head but hard to execute.

The job is to...

  1. User inputs
    • Company Name
    • Contact Name
    • Phone
    • Email
    • Invoice #
  2. Clicks the Submit button sending them to the Paypal payments page.
  3. User inputs their Payment info and submits payment.
  4. Both User and Merchant receives email with Payment details & Information from step 1.

So far I have the following...

<*form class="Payment" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <*input type="hidden" name="cmd" value="_s-xclick"> <*input type="hidden" name="hosted_button_id" value="MYEYESONLY">

<h1>Calendar Advertisement Online Payments</h1>

<div id="Frame">
    <div class="Sec">
        <lable>Company:</lable>
        <br>
        <input type="text" alt="business" title="business" >
    </div>
    <div class="Sec">
            <lable>Contact Name:</lable>
        <br>
        <input type="text" alt="Contact" title="Contact">
    </div>
    <div class="Sec">
        <lable>Phone:</lable>
        <br>
        <input type="text" alt="Phone" title="Phone">
    </div>
    <div class="Sec">
        <lable>Email:</lable>
        <br>
        <input type="text" alt="Email" title="Email">
    </div>
    <div class="Sec">
        <lable>Invoice Number:</lable>
        <br>
        <input type="text" alt="Inv" title="Inv" value="Example: Hamblen 20-13">
    </div>
</div>

<input type="submit" value="submit" name="submit">

</form>

1 Answer

Ok well I figured out that for the name="" it requires "on#" which I never knew about. I do need help though with How to control my email & any docs on name="on#"