Paypal表格与电子邮件和贝宝

时间:2012-06-04 20:02:29

标签: php forms paypal

我正在尝试制作包含名称,电子邮件,file_upload和一些单选按钮选项等字段的表单。我需要的是:

1)当用户提交表格时,他的所有详细信息都会发送到我的电子邮件地址,他将重定向到PayPal进行付款。

我的表单代码:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="this.target='_blank'; return ReadForm(this, true);" name="myForm" class="payment-form ">

       <div class="left-section">


     <input name="cmd" value="_xclick" type="hidden">
<input name="add" value="1" type="hidden">
<input name="business" value="test@gmail.com " type="hidden">
<input name="shipping" value="0.00" type="hidden">
<input name="no_shipping" value="1" type="hidden">
<input name="return" value="" type="hidden">
<input value="Select Inner Pages, +85.00, +00.00 no-font-image-replacement, +00.00 no-favicon, +99.00 wordpress integration, +00.00 no-all-in-one-seo" name="item_name" type="hidden">
<input value="184.00" name="amount" type="hidden">
<input name="currency_code" value="USD" type="hidden">
<input name="lc" value="US" type="hidden">
<input name="bn" value="PP-ShopCartBF" type="hidden">

<div class="d-section"> 

    <label class="delivery">
 <input class="DEPENDS ON basedes "   onclick="ReadForm (this.form, false);" name="pepperoni" onchange="choixPersonne('cacher1')" value="+120.00" type="radio">
      <p>24 Hour fastest  delivery</p>    
      <span>$120 Home page    $30 inner pages</span></label>


    <label class="delivery">
        <input class="DEPENDS ON basedes "   onclick="ReadForm (this.form, false);" name="pepperoni" value="+85.00" type="radio" onchange="choixPersonne('cacher2')" ><p>2,3 Business day delivery</p>  <span> $85 Home page     $30 inner pages</span></label>
    <label class="delivery">
        <input class="DEPENDS ON basedes "  onclick="ReadForm (this.form, false);" name="pepperoni" value="+70.00" type="radio"><p>5,6 Day Calm Delivery</p> <span> $70 Home page     $25 inner pages</span> </label><br>





             </div>
              <h4>How many pages you need</h4>



        <p>
    <select size="1" onclick="ReadForm (this.form, false);" name="basedes" class="pages-count">
        <option selected="selected">Select Inner Pages</option>
        <option value="2 pages">2 pages ----- $60.00</option>
        <option value="2 pages">3 pages ----- $90.00</option>
        <option value="4 pages">4 pages ----- $120.00</option>
        <option value="2 pages">5 pages ----- $150.00</option>
        <option value="6 pages">6 pages ----- $180.00</option>
        <option value="2 pages">7 pages ----- $210.00</option>
        <option value="2 pages">8 pages ----- $240.00</option>
        <option value="2 pages">9 pages ----- $270.00</option>
        <option value="2 pages">10 pages ----- $300.00</option>
        <option value="2 pages">11 pages ----- $320.00</option>
        <option value="2 pages">12 pages ----- $340.00</option>
        <option value="2 pages">13 pages ----- $360.00</option>
        <option value="2 pages">14 pages ----- $380.00</option>
        <option value="2 pages">15 pages ----- $400.00</option>
        <option value="2 pages">16 pages ----- $420.00</option>
        <option value="2 pages">17 pages ----- $440.00</option>
    </select></p>

              <p class="normal-12">Please select amount of inner pages<br>
              <strong>$10 Off</strong> for order of more than 10 pages</p>




              <h4 class="red-order">Your Order Details <p>(Excluding weekends)</p></h4>

              <div class="order-detail-box">

              <div style="height:100px"></div>
              <h5 class="bold-30">TOTAL COST <input class="ack" size="7" name="tot" value="$00.00" type="text"></h5>
                   <div id="rien" style="display:none">baber </div>

Nos赋予mets et vins fonctionnent uniquement avec les appellations(例如:Sauternes,Chinon等...)    
              </div>

           <div class="right-section">
           <div class="final-form">

           <label>Name</label>
            <input name="name" class="txt-feild" type="text"> 

                           <label>Email</label>
            <input name="email" class="txt-feild" type="text">   


            <label>Upload</label>



          <div id="divinputfile">
<input name="filepc" size="20" id="filepc" onchange="document.getElementById('pc').value = this.value;" type="file">
<div id="inputfile"><input name="pc" id="pc" type="text"></div>

                                       <label>Project Title</label>
            <input name="project title" class="txt-feild" value="" type="text">


                          <label>Project Note</label>
           <textarea name="area" class="" style="height:109px; width:331px; border:#adaaaa 1px solid;" ></textarea>                    




           </div>

               

           </form>

1 个答案:

答案 0 :(得分:0)

您只是使用HTML和JavaScript,或者您尝试使用哪种语言?我用PHP设置了这样的东西。我所做的只是当最终用户提交表单时,将其踢到PHP脚本并读取数据。 PHP脚本发送了电子邮件,然后重定向到PayPal,它发布的地方需要PayPal变量/信息。然后买方完成了付款,然后我在PayPal网站上完成付款后将买家重定向回我的网站。