Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
510 views
in Technique[技术] by (71.8m points)

amp html - Donate form not work in AMP pages, how to fix?

This donate form not working in AMP pages. Why? How to make it work?

I replaced action -> action-xhr

<form action-xhr="https://yoomoney.ru/quickpay/confirm.xml" method="POST" target="_blank">
        <input name="receiver" type="hidden" value="410014290583141">
        <input name="quickpay-form" type="hidden" value="donate">
        <input name="targets" type="hidden" value="Donate for User">
            <input name="paymentType" type="radio" id="radio1" value="AC" checked=""><label for="radio1">From a bank card</label>
            <input name="paymentType" type="radio" id="radio2" value="PC"><label for="radio2">From the YuMoney account</label>
            <input name="paymentType" type="radio" id="radio3" value="MC"><label for="radio3">From mobile account</label>
<input name="sum" type="number" aria-label="Enter the amount" placeholder="Enter the amount" required="required">
        <input name="formcomment" type="hidden" value="Donate for User">
        <input name="short-dest" type="hidden" value="Donate for User">
        <textarea name="comment" aria-label="Comment (optional)" placeholder="Comment (optional)"></textarea> 
<input type="submit" value="Donate">
</form>

Work form https://vhost155915.ispsite.ru/classic_html_work_form.html

Not work form https://vhost155915.ispsite.ru/AMP_NOT_work_form.html

enter image description here

Please help me.

Sorry for My English.

question from:https://stackoverflow.com/questions/65869979/donate-form-not-work-in-amp-pages-how-to-fix

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...