SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Unable to display the full session variable in a html form

    I have a page where people can update their personal account settings. It populates the form fields with variables that are stored in the session. Even though the variable often has two or more words in it, the form is only displaying the first word. In the example below, only Healing shows up in the companyName field. This is really weird and was wondering if anyone had any ideas on why this is happening.

    Thanks!

    [companyName] => Healing Spices
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    SitePoint Zealot Cute Tink's Avatar
    Join Date
    Apr 2009
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you properly quoting the value in the HTML form? i.e.:

    <input type="text" value="Some value" />

    If you don't put them in quotes, the form will drop everything after the space.

  3. #3
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you, that did the trick.
    Convert your dollars into silver coins. www.convert2silver.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •