Community Forums 

Main Content

Using form in WordPress

    Aug 16 2012 09:44:07

    #1

    Nick French

    Join date : 2008-09-18      Posts : 63

    I am trying to use Mals in WP but having problems, a temporary example of the forms are here: http://www.dsofficefurniture.co.uk/about/

    Any ideas?

    This is the code I have placed in the HTML tab of the page:

    Please select your service:<br /><hr>

    <b>Pay As You Go Payments</b><br />

    Add &pound;20 plus VAT to your Pay As You Go account. <br /><br />
    <form action=http://ww5.aitsafe.com/cf/add.cfm method=post>
    <input type="hidden" name="userid" value="74222362">
    <input type="hidden" name="product[]" value="Payment to Your Reception Desk" />
    Please enter the name on your account or account number:
    <input type="text" name="product[]" size="20" onchange="this.form['product[pers]'].value=(this.value.length>0)?'{br}Personalisation:,':',';" /><br /><br />
    <input type=hidden name=price value=20.00>
    <INPUT type="submit" value= " Proceed to payment " >
    </form>
    <br /><br />

    <hr>


    <b>Personal Assist Payments</b><br /><br />

    <form action=http://ww5.aitsafe.com/cf/add.cfm method=post>
    <input type="hidden" name="userid" value="74222362">
    <input type="hidden" name="product[]" value="Payment to Your Reception Desk" />
    Please enter the invoice number(s) you are wanting to pay:
    <input type="text" name="product[]" size="20" onchange="this.form['product[pers]'].value=(this.value.length>0)?'{br}Personalisation:,':',';" /><br /><br />
    Please enter the amount you wish to pay:
    <INPUT size=8 name=price> excluding VAT.<br /><br />
    <INPUT type="submit" value= " Proceed to payment " >
    </form><br />

    http://www.nickfrench.co.uk




    Aug 16 2012 12:41:47

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    Clear your errors Nick:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.dsofficefurniture.co.uk%2Fabout%2F

    Change this line:
    form action=http://ww5.aitsafe.com/cf/add.cfm method=post
    to
    form action="http://ww5.aitsafe.com/cf/add.cfm"; method="post"

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Aug 16 2012 15:51:11

    #3

    Nick French

    Join date : 2008-09-18      Posts : 63

    Thanks, the page is just a test page, have tried to add in the missing " but still not having much joy, :-(

    It should be along the lines of this page which works fine: http://www.yourreceptiondesk.co.uk/payments/

    But the same form on this page is not: http://www.dsofficefurniture.co.uk/about/

    http://www.nickfrench.co.uk




    Aug 16 2012 15:55:33

    #4

    GT

    Join date : 2008-09-18      Posts : 3207

    I still see errors Nick, including...

    <input type="text" name="product[]" size="20" onchange="this.form['product[pers]'].value=(this.value.length>0)?&#8217;{br}Personalisation:,&#8217;:',&#8217;;&#8221; /></p>

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Aug 16 2012 19:06:20

    #5

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Hi Nick, It looks like your editor is changing your apostrophes and quotes to their numeric codes instead making your script not work. Why the fancy script? Only asking for trouble with it.

    Lot simpler:
    <form action="http://ww5.aitsafe.com/cf/add.cfm"; method="post">
    <input type="hidden" name="userid" value="74222362"><br />
    <input type="hidden" name="product[]" value="Payment to Your Reception Desk," /><br />
    Please enter the name on your account or account number:<br />
    <input type="hidden" name="product[]" value="{br}Personalization:,">
    <input type="text" name="product[]"><br />
    <input type="hidden" name="price" value="20.00"><br />
    <input type="submit" value= "Proceed to payment">
    </form>

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Aug 17 2012 11:30:26

    #6

    Nick French

    Join date : 2008-09-18      Posts : 63

    Thanks both of you

    http://www.nickfrench.co.uk




    Aug 22 2012 16:30:50

    #7

    Claire

    Join date : 2008-11-08      Posts : 90

    nick use HTML editor only in wordpress. I have quite a few WP sites with cart setup in them. good luck! and make sure WP version is most current. it has no problem using html codes but visual editor will strip it.

    ----
    Claire Walters Design Studios