Community Forums 

Main Content

Re:Donation form

    Aug 08 2014 18:11:31

    #1

    Geoff

    Join date : 2008-09-18      Posts : 415

    A little javascript magic!

    <form action="http://ww8.aitsafe.com/cf/pay.cfm"; method="post" onsubmit="this.myChoice.value='Donation:'+ this.myPrice.value">
    <input type="hidden" name="userid" value="A1267249">
    <input type="hidden" name="return" value="www.diabetes.bm">;
    <input type="text" name="inv_name">Name<br />
    <input type="text" name="inv_addr1">Address<br />
    <input type="text" name="inv_addr2">City<br />
    <input type="text" name="inv_state">Parish<br />
    <input type="text" name="inv_zip">Zip<br />
    <input type="text" name="inv_country" value="Bermuda">Country<br />
    <input type="text" name="tel">Phone<br />
    <input type="text" name="email">Email<br /><br />

    <input type="hidden" name="qty1" value="1" />

    <input type="radio" name="productpr1" value="Donation:50">
    Donate - $50
    <br />
    <input type="radio" name="productpr1" value="Donation:100">
    Donate - $100
    <br />
    <input type="radio" name="productpr1" value="Donation:250">
    Donate - $250
    <br />
    <input type="radio" name="productpr1" id="myChoice" value="Donation:0">
    Other&nbsp;&nbsp;
    <input size="6" name="myPrice">
    <br />
    <input name="submit" type="submit" value="Make your donation">
    </form>