• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Getting text from DB and inserting into textbox; but not getting whole string

if I (echo "$CompanyInfo_Bill_ContactName";) I will get the whole string but when I insert it into the following, I only get the first word any thing after the first space i do not receive.

 echo "<input name='CompanyInfo_Bill_ContactName' value=$CompanyInfo_Bill_ContactName size='30' maxlength='100' type='text' tabindex='6'>";
0
thaburner
Asked:
thaburner
1 Solution
 
ll_jaxnCommented:
Awh grasshopper.....

Think outside the QUOTES.....

echo ===> "<input name='CompanyInfo_Bill_ContactName' value=$CompanyInfo_Bill_ContactName size='30' "

will give you ==> "<input name='CompanyInfo_Bill_ContactName' value=Bill theContractor  size='30'

DO this ==> value='{$CompanyInfo_Bill_ContactName} '
0
 
thaburnerAuthor Commented:
LOL yep that was the trick

Thanks,
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now