+ Reply to Thread
Results 1 to 9 of 9

Thread: html output error and parse errors in php

  1. #1
    Join Date
    Nov 2004
    Posts
    8

    Post html output error and parse errors in php

    Hi this is a great form but i am having a few errors after i tried to output to html template

    the first error was parse error in d:\inetpub\wwwroot\formmail.php on line 1374
    and 1400
    I changet to template url option rather than dir and those errors stoped
    but this one appeared
    a session had already been started-ingoring session_statr() in d:\inetpub\wwwroot\formmail.php on line 834

    any ideas on how to fix this

    system specs=

    server - iis5
    php ver 4.3.9


    the basic idea of what i am tring to do is to show the user their selections
    after the form is submitted and the recive thoes results in an html email
    so it is easier to read .also want to note that form worked perfect untill i tried to do this

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

    Default Re: html output error and parse errors in php

    Hi,

    It sounds like you might have made a typographical error when changing the value.

    Can you send me your formmail.php (the one that doesn't work) to supportstaff AT tectite DOT com?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Nov 2004
    Posts
    8

    Default Re: html output error and parse errors in php

    sent file this morning along with the html template and the page that is serving the form

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

    Default Re: html output error and parse errors in php

    Hi,

    We haven't received the files. Please check the email address you sent them to.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: html output error and parse errors in php

    Hi,

    Thanks, got the files.

    You've confused the configuration of $TEMPLATEDIR and $TEMPLATEURL in formmail.php.

    $TEMPLATEDIR is for a directory (file access) and $TEMPLATEURL is for a URL (web access).

    You've set $TEMPLATEDIR to a URL, and that's going to break everything.

    I recommend you go back to the original FormMail download or put the values back the way they were.

    Then, decide if you want to use web access or file access to get to your templates. If you want file access, set $TEMPLATEDIR to the full path name to the template directory. It will start like "d:/path/to" on windows.

    If you want web access, use "http://yoursite.com/path/to/templatedirectory" to set $TEMPLATEURL.

    Let me know if you need further assistance.
    Last edited by russellr; 25-Nov-2004 at 07:12 AM.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #6
    Join Date
    Nov 2004
    Posts
    8

    Post Re: html output error and parse errors in php

    Thanks the errors are gone and im getting my form submissions .
    which brings me to the next problem some ov the values wont post
    on the htm template for the user thet show up on my email
    but not the user side not sure if it is the form page or formmail that is causing the problem ill attach the files maybe you can see where the error is
    Attached Files

  7. #7
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: html output error and parse errors in php

    Hi,

    You can't use blanks in field names. Blanks are actually against the HTML standard, though browsers seem to allow it.

    Blanks in field names definitely stop PHP from working properly.
    Last edited by russellr; 01-Dec-2004 at 09:44 PM.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  8. #8
    Join Date
    Nov 2004
    Posts
    8

    Default Re: html output error and parse errors in php

    I took out the spaces and all works perfect Thank You for all your help.

    However, The field names need to be spaced to be
    1.readable and 2. professional looking

    Is there a way on the html output that the user views and the email sent
    to put the spaces back in?

    (I didnt design the original form so the field nameing options wer'nt mine
    but now that its done that is what they have to be)

  9. #9
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: html output error and parse errors in php

    Hi,

    For a "thank you" page, you can use create a template that shows the user anything you want to show them. It's described here: http://www.tectite.com/vbforums/showthread.php?t=194

    It's the "good_template" feature you want. There's a sample form and sample template you can download.

    For the email, you can use HTML templates or plain text templates. Plain templates are described here: http://www.tectite.com/fmhowto/plaintmplt.php
    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. Errors after from submission
    By LPac in forum FormMail Subscription Support
    Replies: 1
    Last Post: 18-Feb-2004, 03:23 AM
  2. output form into a webpage
    By redsnow in forum FormMail Subscription Support
    Replies: 3
    Last Post: 10-Feb-2004, 12:34 PM
  3. Parse error
    By EladFish in forum FormMail Subscription Support
    Replies: 1
    Last Post: 24-Jan-2004, 05:31 AM
  4. no recipient errors!
    By jeriy in forum FormMail Subscription Support
    Replies: 3
    Last Post: 20-Jan-2004, 10:45 AM
  5. Output format
    By Beamin1 in forum FormMail Subscription Support
    Replies: 4
    Last Post: 18-Jan-2004, 08:46 AM

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