+ Reply to Thread
Results 1 to 4 of 4

Thread: How to collect field calaculated by javascript?

  1. #1
    Join Date
    Dec 2010
    Posts
    3

    Default How to collect field calaculated by javascript?

    Hi,
    I have a form which has a filed into which the number of items is added, and the price etc is calculated.
    However I cannot capture the number of items in my template form.
    Any ideas
    Thanks

    Below is an example of the form input field.

    <td><INPUT TYPE=TEXT NAME="Key Stage 1 " SIZE=6 MAXLENGTH=3 onChange="CalculateTotal(this.form)"></td><td>Key Stage 1</td>

  2. #2
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: How to collect field calaculated by javascript?

    Hi,

    You cannot use spaces in your field names.

    In general, PHP replaces them with underscores, and that's what you need to do in your template.

    It's just much better to use simple names like "KeyStage1" instead of "Key Stage 1 ", and then you're not guessing.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2010
    Posts
    3

    Default Re: How to collect field calaculated by javascript?

    Hi,
    I've tried removing the spaces etc but no difference.
    Maybe I have not presented it very clearly.

    If I send the form without using a template, the result is as below, with the quantity of product coming at the end after the colon.


    Key_Stage_1_–_Core_Subjects_250_00: 1


    This quantiy is entered into a field that using js calculates the price etc.
    thanks

  4. #4
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: How to collect field calaculated by javascript?

    Hi,

    The underscores indicate that the spaces are still in your form. (PHP replaces the spaces with underscores.)

    The spares are definitely the cause of the problem you describe.

    If you would like direct assistance to solve this problem, we do offer subscription based support:
    http://www.tectite.com/vbforums/showthread.php?t=1567
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Javascript image reload for image verify
    By swaz in forum FormMail Subscription Support
    Replies: 4
    Last Post: 28-Aug-2006, 01:24 AM
  2. fmbadhandler and javascript
    By whystruggle in forum Bug Reports
    Replies: 3
    Last Post: 28-Feb-2006, 03:59 PM
  3. Can "Reply To" EM Field be set to email field
    By CWD in forum FormMail Subscription Support
    Replies: 2
    Last Post: 26-Jul-2005, 05:56 AM
  4. Checkboxes in JavaScript in conjunction with Formmail
    By Lesjo in forum FormMail Subscription Support
    Replies: 4
    Last Post: 15-Dec-2004, 11:46 PM
  5. Javascript and formmail: drop down list
    By bwv in forum FormMail Subscription Support
    Replies: 4
    Last Post: 05-Nov-2004, 11:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts