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

we need the code to help solve your problem. can you post it?

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.