soulslayer Posted May 26, 2006 Share Posted May 26, 2006 I'm no php expert, and I'm having a really hard time nailing this error down. Can someone assist me please?My form is located here[a href=\"http://www.kidfriendlypeninsula.com/phpFormGenerator/use/SubmitaReview/form1.html\" target=\"_blank\"]http://www.kidfriendlypeninsula.com/phpFor...view/form1.html[/a]This is the process.php code<?phpinclude("global.inc.php");$errors=0;$error="The following errors occured while processing your form input.<ul>";pt_register('POST','YourName');pt_register('POST','Cityyoulivein');pt_register('POST','NumberofGuestsinPartyAdultsandChildren');pt_register('POST','AgesofChildren');pt_register('POST','TotalAmountofCheck');pt_register('POST','NameofRestaurant');pt_register('POST','City');pt_register('POST','TimeofVisit');pt_register('POST','DateofVisit');pt_register('POST','Cuisine');pt_register('POST','Entrance');pt_register('POST','Tables');pt_register('POST','HighChairsandBoosters');pt_register('POST','Bathrooms');pt_register('POST','Timebeforebeingseated');pt_register('POST','Lengthofwaitformeal');pt_register('POST','KidsServedfirstsecondoratthesametime');pt_register('POST','KidsMenu');pt_register('POST','Crayons');pt_register('POST','NoiseLevel');pt_register('POST','NonSmokingAvailable');pt_register('POST','OfferorprovideKidsCupswithlids');pt_register('POST','Offerorprovidekidfriendlyappetizers');pt_register('POST','Kidsfoodservedwarmorhot');pt_register('POST','VarietyofDessertsavailable');pt_register('POST','HealthyOptionsforSides');pt_register('POST','TableHeightAcceptable');pt_register('POST','BoosterorHighChairavailable');pt_register('POST','BathromChangingTableavailable');pt_register('POST','Adequatesizeofstall');pt_register('POST','AdequateLighting');pt_register('POST','CleanlinessOverallRating');pt_register('POST','ServiceOverallRating');pt_register('POST','AtmosphereRating');pt_register('POST','DiningExperienceRating');pt_register('POST','FacilitiesRating');pt_register('POST','Comments');$Comments=preg_replace("/(\015\012)|(\015)|(\012)/"," <br />", $Comments);pt_register('POST','Wouldyouliketobecontacted');if($errors==1) echo $error;else{$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));$message="Your Name: ".$YourName."City you live in: ".$Cityyoulivein."Number of Guests in Party Adults and Children: ".$NumberofGuestsinPartyAdultsandChildren."Ages of Children: ".$AgesofChildren."Total Amount of Check: ".$TotalAmountofCheck."Name of Restaurant: ".$NameofRestaurant."City: ".$City."Time of Visit: ".$TimeofVisit."Date of Visit: ".$DateofVisit."Cuisine: ".$Cuisine."Entrance: ".$Entrance."Tables: ".$Tables."High Chairs and Boosters: ".$HighChairsandBoosters."Bathrooms: ".$Bathrooms."Time before being seated: ".$Timebeforebeingseated."Length of wait for meal: ".$Lengthofwaitformeal."Kids Served first second or at the same time: ".$KidsServedfirstsecondoratthesametime."Kids Menu: ".$KidsMenu."Crayons: ".$Crayons."Noise Level: ".$NoiseLevel."Non Smoking Available: ".$NonSmokingAvailable."Offer or provide Kids Cups with lids: ".$OfferorprovideKidsCupswithlids."Offer or provide kid friendly appetizers: ".$Offerorprovidekidfriendlyappetizers."Kids food served warm or hot: ".$Kidsfoodservedwarmorhot."Variety of Desserts available: ".$VarietyofDessertsavailable."Healthy Options for Sides: ".$HealthyOptionsforSides."Table Height Acceptable: ".$TableHeightAcceptable."Booster or High Chair available: ".$BoosterorHighChairavailable."Bathrom Changing Table available: ".$BathromChangingTableavailable."Adequate size of stall: ".$Adequatesizeofstall."Adequate Lighting: ".$AdequateLighting."Cleanliness Overall Rating: ".$CleanlinessOverallRating."Service Overall Rating: ".$ServiceOverallRating."Atmosphere Rating: ".$AtmosphereRating."Dining Experience Rating: ".$DiningExperienceRating."Facilities Rating: ".$FacilitiesRating."Comments: ".$Comments."Would you like to be contacted: ".$Wouldyouliketobecontacted."";$message = stripslashes($message);mail("admin@kidfriendlypeninsula.com","Form Submitted at your website",$message,"From: phpFormGenerator");header("Refresh: 0;url=http://www.kidfriendlypeninsula.com/thanks.htm");?><?php }?>I have no clue what's causing this? Can anyone point me in the right direction?Thanks so much in advance..... Quote Link to comment https://forums.phpfreaks.com/topic/10510-error-premature-end-of-script-headers-processphp/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.