kallok Posted March 1, 2007 Share Posted March 1, 2007 Hello! I am working on a form, I'm not amazing at coding so I am running into problems. What I am trying to do is build a web form that will sent the results to email. I'll use the "GroupName" and "TeamClimb" fields for an example. The form works, only the results are like this: GroupName: GROUPS NAME HERE TeamClimb: TEAM CLIMB INFO HERE What I would like to do is have just what the user submits in one row like this: GROUPS NAME HERE, TEAM CLIMB INFO HERE I'm not really sure how to accomplish this, but I know there has to be some way! Here's a sampling of some of the coding: $GroupName = Trim(stripslashes($_POST['GroupName'])); $TeamClimb = Trim(stripslashes($_POST['TeamClimb'])); $Body .= "GroupName: "; $Body .= $GroupName; $Body .= "\n"; $Body .= "TeamClimb: "; $Body .= $TeamClimb; $Body .= "\n"; The actual link is: http://www.ysu.edu/reccenter/wellness/form.shtml Thanks for any help! Link to comment https://forums.phpfreaks.com/topic/40751-help-with-formating-a-webform/ Share on other sites More sharing options...
bwochinski Posted March 1, 2007 Share Posted March 1, 2007 You need to take out the newlines --> "\n" Link to comment https://forums.phpfreaks.com/topic/40751-help-with-formating-a-webform/#findComment-197286 Share on other sites More sharing options...
kallok Posted March 1, 2007 Author Share Posted March 1, 2007 thanks i figured out the rest on my own! Link to comment https://forums.phpfreaks.com/topic/40751-help-with-formating-a-webform/#findComment-197304 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.