Form not sending info...

Reply

Join Date: Feb 2008
Posts: 179
Reputation: foundsheep is an unknown quantity at this point 
Solved Threads: 0
foundsheep's Avatar
foundsheep foundsheep is offline Offline
Junior Poster

Form not sending info...

 
0
  #1
Jun 4th, 2008
I'm not sure why but my form is not sending the info. I'm able to get the email but all the fields are blank. When I submit the form I get my echo message. Any help is great, thanks.

Form:
  1.  
  2. <form action="sell_process.php" method="post">
  3. <table width="100%" cellpadding="2" cellspacing="2">
  4. <tr>
  5. <td colspan="2"><span class="style2">* Required Information</span></td>
  6. </tr>
  7. <tr>
  8. <td width="43%"><strong>*Your Name:</strong></td>
  9. <td width="57%"><label>
  10. <input name="name" type="text" id="name" size="35">
  11. </label></td>
  12. </tr>
  13. <tr>
  14. <td><strong>*Property Address: </strong></td>
  15. <td><input name="property_address" type="text" id="property_address" size="35"></td>
  16. </tr>
  17. <tr>
  18. <td><strong>*Property City:</strong></td>
  19. <td><input name="property_city" type="text" id="property_city" size="35"></td>
  20. </tr>
  21. <tr>
  22. <td><strong>*Property State:</strong></td>
  23. <td><input name="property_state" type="text" id="property_state" size="35"></td>
  24. </tr>
  25. <tr>
  26. <td><strong>*Zip:</strong></td>
  27. <td><input name="property_zip" type="text" id="property_zip" size="35"></td>
  28. </tr>
  29. <tr>
  30. <td><strong>*Phone: </strong></td>
  31. <td><input name="phone" type="text" id="phone" size="35"></td>
  32. </tr>
  33. <tr>
  34. <td><strong>*E-mail Address:</strong></td>
  35. <td><input name="email" type="text" id="email" size="35"></td>
  36. </tr>
  37. <tr>
  38. <td>Listed with Realtor?:</td>
  39. <td><label>
  40. <select name="listed" id="listed">
  41. <option value="Yes">Yes</option>
  42. <option value="No">No</option>
  43. </select>
  44. </label></td>
  45. </tr>
  46. <tr>
  47. <td valign="top">Why are you
  48. selling?</td>
  49. <td><label>
  50. <textarea name="why_sell" cols="35" rows="5" id="why_sell"></textarea>
  51. </label></td>
  52. </tr>
  53. <tr>
  54. <td>Property is:</td>
  55. <td><label>
  56. <select name="property_is" id="select2">
  57. <option value="Owner Occupied">Owner Occupied</option>
  58. <option value="Renter Occupied">Renter Occupied</option>
  59. <option value="Vacant">Vacant</option>
  60. </select>
  61. </label></td>
  62. </tr>
  63. <tr>
  64. <td>Property type:</td>
  65. <td><select name="property_type" size="1" id="select3">
  66. <option value="Single Family">Single Family</option>
  67. <option value="Town House">Town House</option>
  68. <option value="Duplex">Duplex</option>
  69. <option value="Triplex ">Triplex </option>
  70. <option value="Fourplex">Fourplex</option>
  71. <option value="Apartments">Apartments</option>
  72. <option value="Farm House">Farm House</option>
  73. <option value="Commercial">Commercial</option>
  74. <option value="Other ">Other </option>
  75. </select></td>
  76. </tr>
  77. <tr>
  78. <td>Age of house:</td>
  79. <td><input name="house_age" type="text" id="house_age" size="20"></td>
  80. </tr>
  81. <tr>
  82. <td>Square footage:</td>
  83. <td><input name="square_footage" type="text" id="square_footage" size="20"></td>
  84. </tr>
  85. <tr>
  86. <td>Garage:</td>
  87. <td><select name="garage" size="1" id="select4">
  88. <option value="One Car Attached">One Car Attached</option>
  89. <option value="Two Car Attached">Two Car Attached</option>
  90. <option value="Three Car Attached">Three Car Attached</option>
  91. <option value="One Car Detached">One Car Detached</option>
  92. <option value="Two Car Detached">Two Car Detached</option>
  93. <option value="Three Car Detached">Three Car Detached</option>
  94. <option value="Carport">Carport</option>
  95. <option value="None">None</option>
  96. </select></td>
  97. </tr>
  98. <tr>
  99. <td># of Bedrooms:</td>
  100. <td><select name="bedrooms" size="1" id="select5">
  101. <option value="1">1</option>
  102. <option value="2">2</option>
  103. <option value="3">3</option>
  104. <option value="4">4</option>
  105. <option value="5+">5+</option>
  106. </select></td>
  107. </tr>
  108. <tr>
  109. <td># of Baths:</td>
  110. <td><select name="bathrooms" size="1" id="select6">
  111. <option value="1">1</option>
  112. <option value="1.5">1.5</option>
  113. <option value="2">2</option>
  114. <option value="2.5">2.5</option>
  115. <option value="3">3</option>
  116. <option value="3.5">3.5</option>
  117. <option value="4+">4+</option>
  118. </select></td>
  119. </tr>
  120. <tr>
  121. <td>Overall condition
  122. of the house:</td>
  123. <td valign="top"><select name="condition" size="1" id="select7">
  124. <option value="Excellent">Excellent</option>
  125. <option value="Good">Good</option>
  126. <option value="Fair">Fair</option>
  127. <option value="Poor">Poor</option>
  128. <option value="UGLY!">UGLY!</option>
  129. </select></td>
  130. </tr>
  131. <tr>
  132. <td valign="top">What repairs
  133. are needed?</td>
  134. <td><textarea name="repairs" cols="35" rows="5" id="textarea2"></textarea></td>
  135. </tr>
  136. <tr>
  137. <td valign="top">Any upgrades or
  138. remodeling
  139. needed?</td>
  140. <td><textarea name="upgrades" cols="35" rows="5" id="textarea3"></textarea></td>
  141. </tr>
  142. <tr>
  143. <td>Age/Condition of Roof: </td>
  144. <td><input name="roof_age" type="text" id="roof_age" size="35"></td>
  145. </tr>
  146. <tr>
  147. <td colspan="2">&nbsp;</td>
  148. </tr>
  149. <tr>
  150. <td><strong>Mortgage Information: </strong></td>
  151. <td>&nbsp;</td>
  152. </tr>
  153. <tr>
  154. <td>1st mortgage balance:</td>
  155. <td><input name="mortgage_bal_1" type="text" id="mortgage_bal_1" value="$" size="35"></td>
  156. </tr>
  157. <tr>
  158. <td>1st mortgage payment amount:</td>
  159. <td valign="top"><input name="mortgage_pay_1" type="text" id="mortgage_pay_1" value="$" size="35"></td>
  160. </tr>
  161. <tr>
  162. <td>2nd mortgage balance:</td>
  163. <td><input name="mortgage_bal_2" type="text" id="mortgage_bal_2" value="$" size="35"></td>
  164. </tr>
  165. <tr>
  166. <td>2nd mortgage payment amount:</td>
  167. <td valign="top"><input name="mortgage_pay_2" type="text" id="mortgage_pay_2" value="$" size="35"></td>
  168. </tr>
  169. <tr>
  170. <td>What is the balance of all
  171. mortgages combined?</td>
  172. <td valign="top"><input name="bal_combined" type="text" id="bal_combined" value="$" size="35"></td>
  173. </tr>
  174. <tr>
  175. <td>What is the combined monthly
  176. payment on all mortgages?</td>
  177. <td valign="top"><input name="payment_combined" type="text" id="payment_combined" value="$" size="35"></td>
  178. </tr>
  179. <tr>
  180. <td>Are all mortgage payments current:</td>
  181. <td valign="top"><select name="mort_pay_current" size="1" id="select8">
  182. <option>YES</option>
  183. <option>NO</option>
  184. </select></td>
  185. </tr>
  186. <tr>
  187. <td>If payments are not current
  188. how far behind are they?</td>
  189. <td valign="top"><input name="payments_behind" type="text" id="payments_behind" value="$" size="35"></td>
  190. </tr>
  191. <tr>
  192. <td>1st Mortgage $ Amount behind:</td>
  193. <td valign="top"><input name="mortgage_behind_1" type="text" id="mortgage_behind_1" value="$" size="35"></td>
  194. </tr>
  195. <tr>
  196. <td>1st Mortgage # of payments late:</td>
  197. <td valign="top"><input name="mortgage_late_1" type="text" id="mortgage_late_1" size="35"></td>
  198. </tr>
  199. <tr>
  200. <td>2nd Mortgage $ Amount behind:</td>
  201. <td valign="top"><input name="mortgage_behind_2" type="text" id="mortgage_behind_2" value="$" size="35"></td>
  202. </tr>
  203. <tr>
  204. <td>2nd Mortgage # of payments late:</td>
  205. <td valign="top"><input name="mortgage_late_2" type="text" id="mortgage_late_2" size="35"></td>
  206. </tr>
  207. <tr>
  208. <td>Any Liens and or Title problems?</td>
  209. <td valign="top"><select name="lien_title_problem" size="1" id="select9">
  210. <option>YES</option>
  211. <option>NO</option>
  212. </select></td>
  213. </tr>
  214. <tr>
  215. <td valign="top">If yes, please explain:</td>
  216. <td><textarea name="explain_lien_title" cols="35" rows="5" id="textarea4"></textarea></td>
  217. </tr>
  218. <tr>
  219. <td>Have you been sent a
  220. foreclosure notice?</td>
  221. <td valign="top"><select name="foreclosure_notice" size="1" id="select10">
  222. <option>YES</option>
  223. <option>NO</option>
  224. </select></td>
  225. </tr>
  226. <tr>
  227. <td>If yes, has the foreclosure sale
  228. date been set? </td>
  229. <td valign="top"><select name="foreclosure_sale_date" size="1" id="select11">
  230. <option>YES</option>
  231. <option>NO</option>
  232. </select></td>
  233. </tr>
  234. <tr>
  235. <td>If so, when?</td>
  236. <td><input name="foreclosure_sale_when" id="foreclosure_sale_when" value="mm/dd/yy" size="15"></td>
  237. </tr>
  238. <tr>
  239. <td>How much are you
  240. asking for your house?</td>
  241. <td valign="top"><input name="asking_for_house" type="text" id="asking_for_house" value="$" size="35"></td>
  242. </tr>
  243. <tr>
  244. <td>If we were to have the house
  245. appraised, what do you think it
  246. would appraise for?</td>
  247. <td valign="top"><input name="house_appraise" type="text" id="house_appraise" value="$" size="35"></td>
  248. </tr>
  249. <tr>
  250. <td>How soon do you need to sell?</td>
  251. <td valign="top"><input name="how_soon_to_sell" type="text" id="how_soon_to_sell" size="35"></td>
  252. </tr>
  253. <tr>
  254. <td>If we could pay all cash and close
  255. quickly, what is the least amount
  256. you could accept?</td>
  257. <td valign="top"><input name="least_to_accept" type="text" id="least_to_accept" value="$" size="35"></td>
  258. </tr>
  259. <tr>
  260. <td>How did you hear about us?</td>
  261. <td valign="top"><select name="hear_about_us" size="1" id="select12">
  262. <option>Referral from Attorney</option>
  263. <option>Referral from CPA</option>
  264. <option>Referral from Friend</option>
  265. <option>Referral from Realtor</option>
  266. <option>Local Newspaper</option>
  267. <option>Postcard Letter</option>
  268. <option>Internet Search Engine</option>
  269. <option>Link From other Internet Site</option>
  270. <option>Other</option>
  271. </select></td>
  272. </tr>
  273. <tr>
  274. <td valign="top">Additional Comments: </td>
  275. <td><textarea name="comments" cols="35" rows="5" id="textarea5"></textarea></td>
  276. </tr>
  277. <tr>
  278. <td>&nbsp;</td>
  279. <td><label>
  280. <input type="submit" name="Submit" value="Submit">
  281. </label></td>
  282. </tr>
  283. </table>
  284. </form>

PHP:

  1.  
  2. <?php
  3. $to = "email@gmail.com";
  4. $subject = "Jig Buys Home Property Information Form";
  5. $headers = "From: propertyinfo@jigbuyshomes.com\r\n";
  6.  
  7. $name = $_REQUEST["name"];
  8. $property_address = $_REQUEST["property_address"];
  9. $property_city = $_REQUEST["property_city"];
  10. $property_state = $_REQUEST["property_state"];
  11. $property_zip = $_REQUEST["property_zip"];
  12. $phone = $_REQUEST["phone"];
  13. $email = $_REQUEST["email"];
  14. $listed = $_REQUEST["listed"];
  15. $why_sell = $_REQUEST["why_sell"];
  16. $property_is = $_REQUEST["property_is"];
  17. $property_type = $_REQUEST["property_type"];
  18. $house_age = $_REQUEST["house_age"];
  19. $square_footage = $_REQUEST["square_footage"];
  20. $garage = $_REQUEST["garage"];
  21. $bedrooms = $_REQUEST["bedrooms"];
  22. $bathrooms = $_REQUEST["bathrooms"];
  23. $condition = $_REQUEST["condition"];
  24. $repairs = $_REQUEST["repairs"];
  25. $upgrades = $_REQUEST["upgrades"];
  26. $roof_age = $_REQUEST["roof_age"];
  27. $mortgage_bal_1 = $_REQUEST["mortgage_bal_1"];
  28. $mortgage_pay_1 = $_REQUEST["mortgage_pay_1"];
  29. $mortgage_bal_2 = $_REQUEST["mortgage_bal_2"];
  30. $mortgage_pay_2 = $_REQUEST["mortgage_pay_2"];
  31. $bal_combined = $_REQUEST["bal_combined"];
  32. $payment_combined = $_REQUEST["payment_combined"];
  33. $mort_pay_current = $_REQUEST["mort_pay_current"];
  34. $payments_behind = $_REQUEST["payments_behind"];
  35. $mortgage_behind_1 = $_REQUEST["mortgage_behind_1"];
  36. $mortgage_late_1 = $_REQUEST["mortgage_late_1"];
  37. $mortgage_behind_2 = $_REQUEST["mortgage_behind_2"];
  38. $mortgage_late_2 = $_REQUEST["mortgage_late_2"];
  39. $lien_title_problem = $_REQUEST["lien_title_problem"];
  40. $explain_lien_title = $_REQUEST["explain_lien_title"];
  41. $foreclosure_notice = $_REQUEST["foreclosure_notice"];
  42. $foreclosure_sale_date = $_REQUEST["foreclosure_sale_date"];
  43. $foreclosure_sale_when = $_REQUEST["foreclosure_sale_when"];
  44. $asking_for_house = $_REQUEST["asking_for_house"];
  45. $house_appraise = $_REQUEST["house_appraise"];
  46. $how_soon_to_sell = $_REQUEST["how_soon_to_sell"];
  47. $least_to_accept = $_REQUEST["least_to_accept"];
  48. $hear_about_us = $_REQUEST["hear_about_us"];
  49. $comments = $_REQUEST["comments"];
  50.  
  51. $body = "From: $name\n E-mail: $email\n Phone: $phone\n Property Address: $property_address\n Property City: $property_city\n Property State: $property_state\n Zip: $property_zip\n Listed with Realtor?: $listed\n Why are you selling? $why_sell\n Property is: $property_is\n Property type: $property_type\n Age of house: $house_age\n Square footage: $square_footage\n Garage: $garage\n Number of Bedrooms: $bedrooms\n Number of Baths: $bathrooms\n Overall condition of the house: $condition\n What repairs are needed? $repairs\n Any upgrades or remodeling needed? $upgrades\n Age/Condition of Roof: $roof_age\n Mortgage Information:\n 1st mortgage balance: $mortgage_bal_1\n 1st mortgage payment amount: $mortgage_pay_1\n 2nd mortgage balance: $mortgage_bal_2\n 2nd mortgage payment amount: $mortgage_pay_2\n What is the balance of all mortgages combined? $bal_combined\n What is the combined monthly payment on all mortgages? $payment_combined\n Are all mortgage payments current: $mort_pay_current\n If payments are not current how far behind are they? $payments_behind\n 1st Mortgage Amount behind: $mortgage_behind_1\n 1st Mortgage num. of payments late: $mortgage_late_1\n 2nd Mortgage Amount behind: $mortgage_behind_2\n 2nd Mortgage num. of payments late: $mortgage_late_2\n Any Liens and or Title problems? $lien_title_problem\n If yes, please explain: $explain_lien_title\n Have you been sent a foreclosure notice? $foreclosure_notice\n If yes, has the foreclosure sale date been set? $foreclosure_sale_date\n If so, when? $foreclosure_sale_when\n How much are you asking for your house? $asking_for_house\n If we were to have the house appraised, what do you think it would appraise for? $house_appraise\n How soon do you need to sell? $how_soon_to_sell\n If we could pay all cash and close quickly, what is the least amount you could accept? $least_to_accept\n How did you hear about us? $hear_about_us\n Additional Comments: $comments";
  52.  
  53. echo "$name, thank you for submitting your property information to Jig Buys Homes. Will be contacting you shortly. Have a great day!";
  54.  
  55. mail($to, $subject, $body, $headers);
  56. ?>
<insert witty comment here>
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 252
Reputation: ProfessorPC is an unknown quantity at this point 
Solved Threads: 27
ProfessorPC ProfessorPC is offline Offline
Posting Whiz in Training

Re: Form not sending info...

 
0
  #2
Jun 4th, 2008
Change $_REQUEST to $_POST. i have tested and should pull all info
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 179
Reputation: foundsheep is an unknown quantity at this point 
Solved Threads: 0
foundsheep's Avatar
foundsheep foundsheep is offline Offline
Junior Poster

Re: Form not sending info...

 
0
  #3
Jun 4th, 2008
Yeah, I had that first, but it was a php version issue. I tested on a newer version and it worked except now it is not emailing the results. Any idea on that?
<insert witty comment here>
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 252
Reputation: ProfessorPC is an unknown quantity at this point 
Solved Threads: 27
ProfessorPC ProfessorPC is offline Offline
Posting Whiz in Training

Re: Form not sending info...

 
0
  #4
Jun 4th, 2008
i tested that it was pulling the info i will take a look the email.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 252
Reputation: ProfessorPC is an unknown quantity at this point 
Solved Threads: 27
ProfessorPC ProfessorPC is offline Offline
Posting Whiz in Training

Re: Form not sending info...

 
0
  #5
Jun 4th, 2008
all seems to work fine with the post. just submitted and it went to the email i have specified
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 252
Reputation: ProfessorPC is an unknown quantity at this point 
Solved Threads: 27
ProfessorPC ProfessorPC is offline Offline
Posting Whiz in Training

Re: Form not sending info...

 
0
  #6
Jun 4th, 2008
i have created the pages from your form and process. you can access this here http://www.normansprofessorpc.com/testing/homebuy.php
Enter the address you want this sent to in the form email address.

also on the process page it displays what is going to be sent in the email body.
Last edited by ProfessorPC; Jun 4th, 2008 at 3:51 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 486 | Replies: 5
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC