Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Form Input Field Truncates At First "


  • Please log in to reply
2 replies to this topic

#1 piskie

piskie

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 1,098 posts
  • Location:Cornwall

Posted 19 January 2011 - 06:44 AM

Could anyone please tell me if there is a simple(ish) solution to stop a Pre-filled in form field from truncating when it meets a "
CODE
<input name="productname" type="text" id="productname" value="<? echo $productname; ?>">
I understand why it happens, I just need to know if there is a remedy that I can use to stop this happening. It particularly crops up when a Product Name includes a size in inches.
Example: Concrete Block 6"

#2 cfreek

cfreek

    AAAHHHH!!1one1!

  • Active Members
  • PipPipPipPip
  • 166 posts
  • Location:Richmond, Virginia, Earth

Posted 19 January 2011 - 10:28 AM

What about something like:

CODE
<input name="productname" type="text" id="productname" value="<? echo str_replace('"','&quot;',$productname); ?>">


Disclaimer: code/html not tested

#3 piskie

piskie

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 1,098 posts
  • Location:Cornwall

Posted 19 January 2011 - 07:04 PM

Thanks cfreak, that did the job a treat and so simple too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!