I'll make this real short - don't know much about PHP. This form was created and then run through a utility that sets all required fields. I am getting a T_string error message in line 1. If someone can help I would greatly appreciate it. I am attempting to include the actual form named form.php in my template and that is when I get the error message. It seems to load fine by itself but when included doesn't work

Here's the URL - http://www.southernsoftwaresolutions.net/contact-us.php

Thanks in advance

Ooops...sorry - here are the first 30 lines - as stated line 1 is the culprit according to the error message. This is from form.php. If more of the code is needed please let me know OR is the issue my contact-us.php page and something in/above the DOCTYPE??

Thanks

<?php

 foreach($_POST as $key => $value){
    	if (is_array($value)) {
    		$_values[$key] = join("%,% ",$value);
    	}else $_values[$key] = $value;
      $_values[$key]=stripslashes($_values[$key]);
      }

 if (!isset($_POST["_referer"])) {
 	$_referer = $HTTP_SERVER_VARS["HTTP_REFERER"];
 }else $_referer = $_POST["_referer"];

 function Display_Checkbox($_field, $_value, $full = true){
     if ($full) {$st = "<input type=\"checkbox\"";}
     $array = split("%,% ",$_field);
     foreach($array as $key){
     	if ($key == $_value) {
     		$st .= "checked";
     		break;}}
     if ($full) {$st .=  " disabled>";}
     return $st;}


 function Display_Selected($_field, $_value){
     $array = split("%,% ",$_field);
     foreach($array as $key){
     	if ($key == $_value) {
     		echo "selected";
     		break;}}}

I have run the code on my local system and i'm not getting a T_string error message.

Have you posted the full code from the contact.php file?

No, I haven't. It's rather lengthy. If you were able to PM your email I could send both files.

Thanks

I have run the code on my local system and i'm not getting a T_string error message.

Have you posted the full code from the contact.php file?

This article has been dead for over six months. Start a new discussion instead.