Menu

Email is not accurate

Help
BlakBox
2004-09-25
2013-06-03
  • BlakBox

    BlakBox - 2004-09-25

    First of all great script, saved me a lot of time. my problem has been bothering me all evening. Ok i created a form and in that for i had a field 5-12, so on the process.php file it created .$5to12 and i got a parse error, but reading the forum i found out i needed to change that to .$fivetotwelve on 2 seperate lines to make the form work. fine i fixed that works great sending the info. but that 5-12 field is linked to a checkbox and when i get the email it doesnt show that as on. i went to form1.html and changed the checkbox to <input type=checkbox name='fivetotwelve'> and that didnt work, am i overlooking something?

     
    • Stephen Hale

      Stephen Hale - 2004-09-25

      The script will try and use your field names as names for varible names inside the form processer script (process.php) PHP does not allow for varible names to begin with numbers, but they can have numbers in them so $5-12 will not work but $fiveto12 will (untested)

      Also, form submitting with check boxes works a little strange, meaning an attribute called 'value' needs to be set in the HTML. If the check box has been checked then it will send the results with the set value, if the check box has not been checked, no result will be sent for the check box to the processer. You may want to try changing the HTML for the check box to:
      <input type="checkbox" name="fivetotwelve" value="on">

      I hope this solves your problem, let me know if you have other problems. Also, check out the post in this forum about phpformgenerator v3, we still need updates on what people want to see in version 3 of this script.

      Best Regards,
      Steve
      -----------------------
      Microterra Technical Staff Member

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.