Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 16-01-07
Registered User
 
Join Date: Feb 2006
Location: Gillingham
Posts: 503
Thanks: 0
Thanked 0 Times in 0 Posts
Donk is an unknown quantity at this point
  help displaying £ in input form

Hi I'm working on a currency database and have a input form to edit how each currency is displayed.

However if I input "£" or "€" The actual symbol appears in the input form.

eg <input value="&pound;" /> displays a box with the £ sign and not the long form.

Any ideas how I can get round this?

Any help would be appreciated

Regards
__________________
They came for my 404 and I said nothing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 16-01-07
Barry's Avatar
Typing with both fingers.
 
Join Date: Aug 2003
Location: In Fishguard with my lovely coracle.
Posts: 2,989
Thanks: 115
Thanked 27 Times in 19 Posts
Barry seems to know their stuff
  Re: help displaying &pound; in input form

Use &amp;pound; ?


Is that what you mean?

Ta
__________________
Mirror Ten Ltd :: Free Codes :: HTC Touch HD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16-01-07
Registered User
 
Join Date: Feb 2006
Location: Gillingham
Posts: 503
Thanks: 0
Thanked 0 Times in 0 Posts
Donk is an unknown quantity at this point
  Re: help displaying &pound; in input form

The input form value is taken from a database.

so the input line is actually:

PHP Code:
<input name="id" type="hidden" value="<?php echo $key?>">
<input name="currency" type="text" size="20" value="<?php echo $currency[$key]['currency']?>" maxlength="20">
The output is then sent back into the database.

The value $currency[$key]['currency'] is the display form of the currency eg &pound; and is used to convert the ISO code "GBP" (id in input form) in the datafeed to display the correct currency.
__________________
They came for my 404 and I said nothing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 16-01-07
Barry's Avatar
Typing with both fingers.
 
Join Date: Aug 2003
Location: In Fishguard with my lovely coracle.
Posts: 2,989
Thanks: 115
Thanked 27 Times in 19 Posts
Barry seems to know their stuff
  Re: help displaying &pound; in input form

Maybe I am not getting what you need, however I will have a go.

To display &pound; in a form field you will need to have the source code:-

<input value="&amp;pound;" />

or your example:-

PHP Code:
<input name="currency" type="text" size="20" value="<input value="<?php echo str_replace('&','&amp;'$currency[$key]['currency'])?>" />" maxlength="20">


When submitted you will have to catch it and change &amp; back to just & then convert it back to your ISO codes.

Sorry if this is not what ya need
__________________
Mirror Ten Ltd :: Free Codes :: HTC Touch HD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 16-01-07
Registered User
 
Join Date: Feb 2006
Location: Gillingham
Posts: 503
Thanks: 0
Thanked 0 Times in 0 Posts
Donk is an unknown quantity at this point
  Re: help displaying &pound; in input form

Cheers the answer was so simple!! But I've spent hours trying to get round the problem.

All sorted now I can get back to work.

Thanks again.
__________________
They came for my 404 and I said nothing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 16-01-07
Barry's Avatar
Typing with both fingers.
 
Join Date: Aug 2003
Location: In Fishguard with my lovely coracle.
Posts: 2,989
Thanks: 115
Thanked 27 Times in 19 Posts
Barry seems to know their stuff
  Re: help displaying &pound; in input form

Had that similar problem and it took me ages as well
__________________
Mirror Ten Ltd :: Free Codes :: HTC Touch HD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form spam problem mibut Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 16 07-02-07 02:22 AM
Form spammers - what to do! smn2 The Affiliate Marketing Lounge 4 12-09-06 02:42 PM
Form text area help - displaying UTF-8 characters Barry Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 24-02-06 01:17 PM
Finance leads: own form vs merchants form hiptophop The Affiliate Marketing Lounge 0 29-09-05 01:44 PM
Lost password form on CJ website woutermols Commission Junction - CJ UK 0 30-03-05 06:18 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7