parse error

:oops: am I embarrassed. After I thought about my last post, e.g., referrer syntax, I remembered it needs to go in the actual script.

Correcting that problem, I now find that when I submit the form I receive a pars error:

Parse error: parse error, expecting `')'' in /hsphere/local/home/gossasso/baldwinoffice.com/formmail.php on line 42

Line 42 refers to the valid environmental array:

$valid_env = array('REMOTE_HOST', 'REMOTE_ADDR', 'REMOTE_USER', 'HTTP_USER_AGENT');

Cany anyone share with me what I need to change here? My referrer syntax includes the URL of the Web site, the URL of the recipient's Email plus the URL of the Web host.

Thanks, Don Goss eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%67%6f%73%73%61%73%73%6f%63%69%61%74%65%73%40%65%61%72%74%68%6c%69%6e%6b%2e%6e%65%74%22%3e%67%6f%73%73%61%73%73%6f%63%69%61%74%65%73%40%65%61%72%74%68%6c%69%6e%6b%2e%6e%65%74%3c%2f%61%3e%27%29%3b'))

By don goss on

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

parse error

The missing closing error usually happens above the line that is reported. I beleive that is the $referer line. Check to make sure that all the lines above #42 (the answer to everything) have proper matching single quotes and paratheses.

-Andrew Riley

Stalk me!

Drupal Association Member