PHPRooky Posted March 15, 2007 Share Posted March 15, 2007 Good evening everybody, I have a form where users type all the information that we request and after that, they press a bottom and all that information is send it by email, but I would like to receive this information in order. This is what we have: Name and Location Years Dated Graduated Subjects Studied of School Attended Grammar School High School College Trade. Business or Correspondence School I want this to appear on the email body with the same order. Is that possible? I'm using PHP to insert all the information in the email body. Link to comment https://forums.phpfreaks.com/topic/42777-send-my-form-data-by-mail-in-order/ Share on other sites More sharing options...
peeps Posted March 15, 2007 Share Posted March 15, 2007 Could you post the code in question? Link to comment https://forums.phpfreaks.com/topic/42777-send-my-form-data-by-mail-in-order/#findComment-207717 Share on other sites More sharing options...
PHPRooky Posted March 16, 2007 Author Share Posted March 16, 2007 Hi and thanks for your quick answer. Here is my code. If you need the form code too, just let me know and I'll send it to you. Is there also a way to change the font letters in PHP, like my first title: PERSONAL INFORMATION. <? $to = "[email protected]"; $from_header = "From: $email"; $msgBody = " PERSONAL INFORMATION Date: $date_month/$date_day/$date_year Social Security: $ssnumber First Name: $first_name Middle Name: $middle_name Last Name: $last_name Present Address Street: $pres_street City: $pres_city State/Country: $pres_state Permanent Address Street: $perm_street City: $perm_city State/Country: $perm_state Phone Number: $tel 2nd. Phone: $tel2 If related to anyone in our employ, state name: $related Referred By: $referred EMPLOYMENT DESIRED Position: $position Date you can start: $start_date Salary Desired: $salary Are you employed now?: $employed If so, may we inquire of your present employer?: $inquire Ever applied to this company before?: $applied Where?: $where_applied When?: $when_applied EDUCATION Name and Location of School Grammar School: $grammar_school / Years Attended: $grammar_years / Dated Graduated: $grammar_date / Subjects Studied: $grammar_subject High School: $high_school / Years Attended: $high_years / Dated Graduated: $high_date / Subjects Studied: $high_subject College: $college / Years Attended: $college_years / Dated Graduated: $college_date / Subjects Studied: $college_subject Trade Business or CS: $trade_school / Years Attended: $trade_years / Dated Graduated: $trade_date / Subjects Studied:$trade_subject Subjects of Special Study or Research Work: $special_study What Foreign Languages do you speak fluently?: 1)$lang_2nd / Read: $check_1st Write: $check_2nd 2)$lang_3rd / Read: $check_3rd Write: $check_4rd U.S. Military or Naval Service Rank: $mil_rank / Pres. Membership in Natl. Guard or Reserve: $member_nat_guard Activities other than Religious (Civic, Athletic, Fraternal, etc.): $activities"; if($email != "") { //send mail - $subject & $contents come from surfer input mail($to, "Curriculum Vitae - $first_name $middle_name $last_name", $msgBody, $from_header); //Esto es lo que estaba antes despues de $to-$subject $info // redirect back to url visitor came from header("Location: $HTTP_REFERER"); } else { print("<HTML><BODY>Error, You need to enter your email address!"); print("</BODY></HTML>"); } ?> Link to comment https://forums.phpfreaks.com/topic/42777-send-my-form-data-by-mail-in-order/#findComment-208553 Share on other sites More sharing options...
chrisredding Posted March 16, 2007 Share Posted March 16, 2007 $perm_city doesn't sound very nice... Does that code not work then? Link to comment https://forums.phpfreaks.com/topic/42777-send-my-form-data-by-mail-in-order/#findComment-208727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.