0

m using below code to submit values in to Paypal and it在工作。

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick" />
    <h2 style="font-family:Segoe UI;">Your Email :</h2>
    <input type="text" name="business" value="youremailaddress@yourdomain.com" style="width:1000px; height:50px; margin-left:30px;"/>
    <br />
    <h2 style="font-family:Segoe UI;">Driveway Size :</h2>
    <input type="hidden" name="item_name" value="" />
    <select id="item_price" name="amount" style="width:1000px; height:50px; margin-left:30px;">
                            <option value="325">Single $325.00</option>
                            <option value="375">Double $375.00</option>
                            <option value="400">2.5 $400.00</option>
                            <option value="425">Triple $425.00</option>
                            <option value="450">3.5 $450.00</option>
                            <option value="475">Quad $475.00</option>
                        </select>
                        <br />
    <input type="submit" value="Buy!" style="margin-top:30px"/>

</form>

但这是桌面版。无论如何我可以为手机做同样的事情吗?

4

1 回答 1

0

是的你可以。例如,您可以使用 System.Net.WebClient 将帖子发送到您在表单的操作字段中拥有的 URL。

或者,您可以将上述 HTML 代码嵌入到应用程序的 Web 浏览器控件中。

于 2012-08-12T14:02:04.157 回答