Results 1 to 9 of 9

Thread: Error Messsage for Formmail.php

  1. #1
    Join Date
    May 2004
    Posts
    5

    Default Error Messsage for Formmail.php

    Hi

    I am fairly new & inexperienced in all things PHP which is why I have been looking around for free scripts that I can upload to my ISP and hence use formmail etc. After downloading 2 other scripts and getting 'Parse error on line xxx' all the time, I though 4rd time lucky and came to the Tectite script.

    For testing purposes, I changed the only line that it instructed me to in order for the thing to work. We have a domain name of www.dog-tooth.com hosted by ukhosts.com. I changed the TARGET_EMAIL field to be 'dog-tooth.com', but all I get is a message about an error and that someone has been informed ????

    The test file is on www.dog-tooth.com/formmail3test.html

    I may have fed the wrong info into the field above, I am not sure. Should this field relate to the actual ISP's server name rather than our domain name ??

    Any help would be appreciated.

    Thanks

    David

  2. #2
    Join Date
    May 2004
    Posts
    5

    Default Re: Error Messsage for Formmail.php

    Sorry, I forgot to say, the ISP passed the mailtest.php & phpinfo.php tests without any problems.

    Thanks

    David

  3. #3
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Error Messsage for Formmail.php

    Something looks quite broken. When I submitted your form I got:

    Code:
    Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/domain/www.dog-tooth.com/web/cgi-bin/formmail3.php on line 1994
    Inside your form, you've got the recipients set to '....easynet.co.uk'. This means your setting of TARGET_EMAIL field to be 'dog-tooth.com' won't work.

    We also strongly recommend you set DEF_ALERT so that you get error messages sent to you. However, the above "parse error" needs to be resolved before you get anywhere.

    What version of PHP do you have installed? (phpinfo tells you that).

    If you'd like to send me your configured formmail.php to custsupp AT tectite DOT com, I'll see what I can do to help.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    May 2004
    Posts
    5

    Default Re: Error Messsage for Formmail.php

    Hi

    Thanks for what you've done so far, when I get back home I'll send the formmail.php through, for now, the www.dog-tooth/com/cgi-bin/phpinfo.php file is still there so maybe you could have a look at the version number, most of that screen is a foreign language to me

    Thanks

    David

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

    Default Re: Error Messsage for Formmail.php

    It's version 4.1.2 of PHP. That's pretty old, but it should work OK.

    I look forward to receiving you formmail.php file.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #6
    Join Date
    May 2004
    Posts
    5

    Default Re: Error Messsage for Formmail.php

    Hi,

    I have attached the PHP for you to have a look at. I have only changed DEF_ALERT & TARGET_EMAIL to the best of my knowledge.

    Many Thanks

    David
    Attached Files Attached Files

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

    Default Re: Error Messsage for Formmail.php

    Hi David,

    Lots of things have been changed by whatever you used to edit it. The script is quite broken.

    Please download it again and set TARGET_EMAIL and DEF_ALERT using notepad or other simple editor.

    Upload it with FTP (or WinSCP) and you should be fine.

    Post again if you need any further assistance.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  8. #8
    Join Date
    May 2004
    Posts
    5

    Default Re: Error Messsage for Formmail.php

    Hi

    Thanks for your help, I have done as you suggested and everything works fine. I did indeed make some alterations in Frontpage (and Dreamweaver) by amending the HTML section and then just doing a SAVE. Obviously that can't be done with scripts I take it.

    One other thing, if we put a required field name of 'email' in and the person doesnt fill 'email' in, then we get a simple test message saying about this. Can we get these situations to go to the 'bad_url' field that we have put in for failed processing, at the moment it doesnt.

    Thanks

    David

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

    Default Re: Error Messsage for Formmail.php

    Hi David,

    One other thing, if we put a required field name of 'email' in and the person doesnt fill 'email' in, then we get a simple test message saying about this. Can we get these situations to go to the 'bad_url' field that we have put in for failed processing, at the moment it doesnt.
    If "email" is a required field and it's not specified by the user, FormMail will redirect to the "bad_url".

    If it's not doing that, then something must have got broken again.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Processing error in FormMail - URGENT
    By Jim in forum FormMail Subscription Support
    Replies: 3
    Last Post: 14-Sep-2004, 08:33 PM
  2. FormMail Error
    By jrscards in forum FormMail Subscription Support
    Replies: 2
    Last Post: 27-Jun-2004, 08:35 PM
  3. FormMail Script Error Message
    By rose in forum FormMail Subscription Support
    Replies: 2
    Last Post: 27-Jun-2004, 04:59 AM
  4. GOOD_URL COMMAND IN FORMMAIL.PHP
    By Paul Ovens in forum FormMail Subscription Support
    Replies: 3
    Last Post: 19-Jan-2004, 04:29 AM
  5. formmail.php
    By paul in forum FormMail Subscription Support
    Replies: 8
    Last Post: 03-Jan-2004, 06:11 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
  •