Forums
This topic is locked
PLEASE HELP ... LINE BREAKS IN SUBMITTED FORM
Posted 02 Aug 2008 18:44:58
1
has voted
02 Aug 2008 18:44:58 Cole Brady posted:
I am working on a webiste that has a page to submit a form. However, since it is for a business, I want it to look professional. As of right now the submitted e-mail looks like this:NAME: E-MAIL: PHONE: ADDRESS: LIFT CHAIR: SCOOTER: POWER CHAIR: STAIR LIFT:
LIFTS - CARRIERS: OTHER: OTHER SPECIFY: INFO ASAP:
My current code for the e-mail submission is:
$info = 'NAME: '.$name
.'E-MAIL: '.$email
.'PHONE: '.$areacode
.$phone1
.$phone2
.'ADDRESS: '.$address1
.$address2
.$address3
.'LIFT CHAIR: '.$liftchair
.'SCOOTER: '.$scooter
.'POWER CHAIR: '.$powerchair
.'STAIR LIFT: '.$stairlift
.'LIFTS - CARRIERS: '.$liftscarriers
.'OTHER: '.$other
.'OTHER SPECIFY: '.$otherspecify
.'INFO ASAP: '.$infoASAP;
I have tried inserting <br>, but that causes an error. What do I have to do to get a break after each field (NAME: E-MAIL: PHONE: etc...)?
Cole
Replies
Replied 03 Aug 2008 20:22:38
03 Aug 2008 20:22:38 Georgi Kralev replied:
Hi Cole,
When you inserted the <b><br></b> did you tried the following:
$info = 'NAME: '.$name."<br />E-MAIL: ".$email."<br />PHONE: ".$areacode
.$phone1.$phone2."<br />ADDRESS: ".$address1.$address2.$address3."<br />LIFT CHAIR: ".$liftchair."<br />SCOOTER: ".$scooter."<br />POWER CHAIR: ".$powerchair."<br />STAIR LIFT: ".$stairlift."<br />LIFTS - CARRIERS: ".$liftscarriers."<br />OTHER: ".$other."<br />OTHER SPECIFY: ".$otherspecify."<br />INFO ASAP: ".$infoASAP;
<b>Note:</b> The above code is not tested. Therefore, it may contain syntax errors.
Regards,
Georgi Kralev
Homepage: gdkralev.googlepages.com
When you inserted the <b><br></b> did you tried the following:
$info = 'NAME: '.$name."<br />E-MAIL: ".$email."<br />PHONE: ".$areacode
.$phone1.$phone2."<br />ADDRESS: ".$address1.$address2.$address3."<br />LIFT CHAIR: ".$liftchair."<br />SCOOTER: ".$scooter."<br />POWER CHAIR: ".$powerchair."<br />STAIR LIFT: ".$stairlift."<br />LIFTS - CARRIERS: ".$liftscarriers."<br />OTHER: ".$other."<br />OTHER SPECIFY: ".$otherspecify."<br />INFO ASAP: ".$infoASAP;
<b>Note:</b> The above code is not tested. Therefore, it may contain syntax errors.
Regards,
Georgi Kralev
Homepage: gdkralev.googlepages.com
Replied 03 Aug 2008 21:19:26
03 Aug 2008 21:19:26 Cole Brady replied:
I had not previously tried that, but I just did. It either does not submit the form at all or puts the "<br/>" in the answer. For example, putting the <br/> in the quotes results in "<br/>E-MAIL: ".
Any other ideas on what to do? I am totally lost on what to do.
-CB
Any other ideas on what to do? I am totally lost on what to do.
-CB
Replied 03 Aug 2008 23:35:30
03 Aug 2008 23:35:30 Georgi Kralev replied:
Cole,
Indeed, the above example should put <b><br></b> in the answer. But <b><br></b> is Html tag. Therefore, your email will be formated with new lines only if the client application (for example Outlook) is HTML-compatible and consider your email as HTML email. If you send your emails as plain text emails replace <br/> with \n
Hope this helps.
Regards,
Georgi Kralev
Homepage: gdkralev.googlepages.com
Indeed, the above example should put <b><br></b> in the answer. But <b><br></b> is Html tag. Therefore, your email will be formated with new lines only if the client application (for example Outlook) is HTML-compatible and consider your email as HTML email. If you send your emails as plain text emails replace <br/> with \n
Hope this helps.
Regards,
Georgi Kralev
Homepage: gdkralev.googlepages.com
Replied 04 Aug 2008 22:10:20
04 Aug 2008 22:10:20 Cole Brady replied:
Well I tried that. No matter where I put it, it still did not work. This is my code:
$info = 'NAME: '.$name
.'E-MAIL: '.$email
.'ADDRESS: '.$address1.$address2.$address3
.'PHONE: ('.$areacode.') '.$phone1.' - '.$phone2
.'LIFT CHAIR: '.$liftchair
.'SCOOTER: '.$scooter
.'POWER CHAIR: '.$powerchair
.'STAIR LIFT: '.$stairlift
.'LIFTS / CARRIERS: '.$liftscarriers
.'OTHER: '.$other
.'OTHER SPECIFIED: '.$otherspecify
.'INFO ASAP: '.$infoASAP;
I don't know if I am just putting it in the wrong spots or what. Maybe if you could copy this code and put it in where it is supposed to go that would help me. I also did not know if there is a special code for PHP because I am used to dealing with HTML, not PHP.
Thanks,
-Cole
$info = 'NAME: '.$name
.'E-MAIL: '.$email
.'ADDRESS: '.$address1.$address2.$address3
.'PHONE: ('.$areacode.') '.$phone1.' - '.$phone2
.'LIFT CHAIR: '.$liftchair
.'SCOOTER: '.$scooter
.'POWER CHAIR: '.$powerchair
.'STAIR LIFT: '.$stairlift
.'LIFTS / CARRIERS: '.$liftscarriers
.'OTHER: '.$other
.'OTHER SPECIFIED: '.$otherspecify
.'INFO ASAP: '.$infoASAP;
I don't know if I am just putting it in the wrong spots or what. Maybe if you could copy this code and put it in where it is supposed to go that would help me. I also did not know if there is a special code for PHP because I am used to dealing with HTML, not PHP.
Thanks,
-Cole
Replied 05 Aug 2008 19:41:54
05 Aug 2008 19:41:54 Georgi Kralev replied:
Did you tried the following:
$info = 'NAME: '.$name."\nE-MAIL: ".$email."\nPHONE: ".$areacode
.$phone1.$phone2."\nADDRESS: ".$address1.$address2.$address3."\nLIFT CHAIR: ".$liftchair."\nSCOOTER: ".$scooter."\nPOWER CHAIR: ".$powerchair."\nSTAIR LIFT: ".$stairlift."\nLIFTS - CARRIERS: ".$liftscarriers."\nOTHER: ".$other."\nOTHER SPECIFY: ".$otherspecify."\nINFO ASAP: ".$infoASAP;
Georgi Kralev
Homepage: gdkralev.googlepages.com
$info = 'NAME: '.$name."\nE-MAIL: ".$email."\nPHONE: ".$areacode
.$phone1.$phone2."\nADDRESS: ".$address1.$address2.$address3."\nLIFT CHAIR: ".$liftchair."\nSCOOTER: ".$scooter."\nPOWER CHAIR: ".$powerchair."\nSTAIR LIFT: ".$stairlift."\nLIFTS - CARRIERS: ".$liftscarriers."\nOTHER: ".$other."\nOTHER SPECIFY: ".$otherspecify."\nINFO ASAP: ".$infoASAP;
Georgi Kralev
Homepage: gdkralev.googlepages.com
Replied 05 Aug 2008 23:38:44
05 Aug 2008 23:38:44 Cole Brady replied:
YES!!! Worked like a charm. Thank you so much for all of your help in this process!!!
Thanks again,
-Cole
Thanks again,
-Cole
Replied 06 Aug 2008 21:47:26
06 Aug 2008 21:47:26 Georgi Kralev replied: