Jump to content


Fairly new but...

  • Please log in to reply
1 reply to this topic

#1 youripper

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 24 March 2005 - 03:11 PM


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


#2 BipolarChucker

  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 April 2005 - 11:17 AM

A starting point could very well be making sure that your none standard characters are properly URL encoded?

£ should actually be %a3

See URL Encoded Characters PDF

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users