Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default contact us form problems

    Hello,

    I'm having trouble with my "Contact Us" form page. I was recently fooling around trying to add a subject line to my form, but when I finished putting the final code in and submitted it. I get this response when I'm viewing my "Contact Us" section of my site:

    "Parse error: syntax error, unexpected '&' in /home/sunidra/public_html/includes/modules/pages/contact_us/header_php.php on line 50

    This is what is on line 50 of that page:

    Code:
    OFFICE_EMAIL . "\t" . $email_address . "\n\n" .
    Can anybody help me figure out what the code for line 50 should say?

    Please and thank you so much.

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: contact us form problems

    Not sure but is there supposed to be a space between Office eMail and the period,

    Isn't there supposed to be some kind of char infront of office eMail? or is it part of another line?

    Can you show a few lines above and below it to include the previous and next functions or expressions?

    Thanks,

    JP

  3. #3
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: contact us form problems

    Here:

    Code:
     $text_message = OFFICE_FROM . "\t" . $name . "\n" .
        OFFICE_EMAIL . "\t" . $email_address . "\n\n" .
        '------------------------------------------------------\n\n" .

  4. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: contact us form problems

    From what you posted, this is the part I have:

    PHP Code:
    // Prepare Text-only portion of message
        
    $text_message OFFICE_FROM "\t" $name "\n" .
        
    OFFICE_EMAIL "\t" $email_address "\n\n" .
        
    '------------------------------------------------------' "\n\n" .
        
    strip_tags($_POST['enquiry']) .  "\n\n" .
        
    '------------------------------------------------------' "\n\n" .
        
    $extra_info['TEXT']; 
    Am I missing something ?

  5. #5
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: contact us form problems

    Thanks so much. That fixed the Contact us page.

    You are so helpful.

  6. #6
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: contact us form problems

    Thanks so much. That fixed the Contact us page.

    You are so helpful.
    Thanks for letting me know that this block did the trick.

  7. #7
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: contact us form problems

    I am trying to remove the asterisk from the FullName field in the contact us form. I cannot find a reference to this particular field anywhere. I have already disable the requirement to use the field, I just need to remove the asterisk. Help!

  8. #8
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: contact us form problems

    Sorry for the late response. Would it be possible to show me a sample of what the Fullname with the asterisk looks like ? If so, I could probably post the corrections if needed.

  9. #9
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: contact us form problems


  10. #10
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: contact us form problems

    If you have already removed the required field (asterisk as you call it) for 'Fullname', you should not be able to see the '*" again for that field (unless you have modified the tpl_contact_us_default.php file). Did you made any modifications to that file manually ?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Having Problems with Contact Form
    By webmiss in forum General Questions
    Replies: 2
    Last Post: 12 Sep 2012, 07:26 PM
  2. Removing default contact info on contact us page/adding form to page
    By haggis0929 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Dec 2009, 06:41 PM
  3. Contact US page + One more Contact FORM :blink:
    By Orange Wacko in forum Managing Customers and Orders
    Replies: 0
    Last Post: 21 Jul 2009, 10:29 PM
  4. SPAM from ‘Contact Us’ form, even though form is removed
    By Beer_man in forum General Questions
    Replies: 5
    Last Post: 3 Dec 2008, 02:40 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR