Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jul 2005
    Location
    texas
    Posts
    2
    Member #
    10572
    In trying to create a form that emails through cgi, I cannot get the email layout the way I want it to look.

    I use cgi and a text document for the email. My problem comes in when I have checkboxes. If more than one is checked, I want them on the next lines, but it all comes out on the same line on the email--looks like this:

    Email: ratmarie@sysmatrix.net
    Home Phone: 555-555-home
    Cell Phone:
    Work Phone: 555-555-work
    Full Name:
    Best Time to Call: Nighttime
    Address: 123 anywhere street
    City: anytown
    Zip: 77777
    Type of Insurance Requesting: House personal auto Commercial Auto Life Health Motorcycle Commercial Liability Boat Farm/Ranch Contractors Builder's Risk

    The insurance types need to be on seperate lines. Can anyone help ?

  2.  

  3. #2
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Post the CGI code and we'll tell you which bits to change. It should be straightforward in the sense we just need to add newline breaks at the correct place(s).
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

  4. #3
    Junior Member
    Join Date
    Jan 2005
    Posts
    12
    Member #
    8646
    It could be something as simple as a conditional statement, where if your checkbox's value of checked is equal to true, you simply tack on a \n or break or whichever to the end of the value. If it is false you do not need it.

  5. #4
    Junior Member
    Join Date
    Jul 2005
    Location
    texas
    Posts
    2
    Member #
    10572
    Here's my code:

    Type of Insurance Requesting: [insurance]
    I heard of the /n or /s or even % to use, but they didn't say what was what.

    I almost forgot: Where [insurance] can/will be several different choices. They could choose up to 10 different items and I want each choice on a seperate item.

  6. #5
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    We need the code for the CGI script that processes the form.
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:40 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com