Jump to content

Fairly new but...


Recommended Posts

Hi,

 

I have been using Dreamweaver for years and recently moved into PHP and email forms.

I have PHP generate an email which for 3 of 4 options which a user selects on the site is perfect, no problems, all lines are correct etc...

 

However if someone selects the option that says 'Sale and Purchase' it resuls in this section of code being selected:

 

else if ($selected == 'Sale and Purchase'){printf ("Sale Land Reg Copy Entries: £%01.2f",$slreg); printf(" Purchase Land Reg Fees: £%01.2f",$lreg);}

 

The reason I haven't posted the surrounding is because it all works spot on! Perfect! I personally can see nothing wrong with the code as when it comes through all values are correct. However - and this is the odd bit - only when this piece of script comes through does it ignore the \n in the email settings and pulls the line below into the same line sometimes with a space, sometimes without.

 

Since it works for everything else I can find no logic to this at all and upon removing this piece of script I found that it was this bit causing the trouble.

 

Any ideas are welcome and I will answer any questions as near to fully as I can

 

Many thanks in advance

 

Vicky

Link to comment
Share on other sites

  • 5 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.