#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    36
    Rep Power
    15
    I'm passing strings from one page to another. Basically, users vote for their top 10, and their votes are displayed on the next page. The things they vote for are school names. Everything is ok, if they do the standard voting.

    However, if the users can't find an option they like, they can vote for "OTHER". Then they are taken to an intermediate page, where their picks are displayed except their is a text box for them to fill in for the OTHER school. Everything on this form is displayed correctly. However, once they submit this form, when they go to the final page with all of their picks displayed anyschools that had two word names, ie Lousiana State are now only displayed as one word ie Lousiana. This baffles me because on the page previously, it says Louisiana State correctly. All I'm doing is then passing this variable as a hidden type to the final page. Does hidden truncate second words for some reason????

    I have magic quotes off.

    Confused
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Are you missing double quotes in your input text box( i mean hidden fields)?

    eg:

    <input type="hidden" name="state" value="Lousiana State">

    Make sure that value is inside the double quotes!!



    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    63
    Rep Power
    15
    Take a look at the urlencode() function.

    http://www.php.net/manual/function.urlencode.php
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    36
    Rep Power
    15
    It was the quotes.
    I was echoing the variables.
    ie
    echo "<input type=’hidden’ name=’team[$i]’ value=’$team[$i]’>";

    but I didn't have the single quotes in there.

    Everything worked fine except the double words.

    Thanks for the help.

Similar Threads

  1. Codepupil
    By Adachic in forum C Programming
    Replies: 3
    Last Post: February 6th, 2004, 07:50 PM
  2. array explode ( string separator, string string [, int limit])
    By beemee_freeserv in forum HTML Programming
    Replies: 4
    Last Post: February 5th, 2004, 11:56 AM
  3. mgetty+sendfax on RH9
    By ayrin in forum Linux Help
    Replies: 0
    Last Post: January 31st, 2004, 03:11 AM
  4. Need help with Selection Sort
    By iNspirito in forum C Programming
    Replies: 21
    Last Post: November 29th, 2003, 03:47 AM
  5. finding max string length if more than 2 elements
    By sri197 in forum XML Programming
    Replies: 1
    Last Post: November 7th, 2003, 07:17 PM

IMN logo majestic logo threadwatch logo seochat tools logo