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

    Join Date
    Aug 2000
    Location
    Sacramento
    Posts
    50
    Rep Power
    14
    Hello,

    Please forgive this newbie type question.

    I have a php script that has an input field called:

    <input type="text" name="VOLUME" value="xxx,xxx,xxx" size="9">

    This works fine. The problem is I would like to split this input field into three for user interface purposes to display like this:

    <input type="text" name="VOLUME1" value="xxx" size="3">

    <input type="text" name="VOLUME2" value="xxx" size="3">

    <input type="text" name="VOLUME3" value="xxxx" size="3">

    and then as the variables are passed they are combined as in the very first input field:

    <input type="text" name="VOLUME" value="xxx,xxx,xxx" size="9">

    any thoughts on how to use three input fields and combine the values into one a variable?

    Thank you.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    France
    Posts
    16
    Rep Power
    0
    Hi,

    Try:

    $volume="$volume1,$volume2,$volume3";

    To output the value
    <input type=text name=volume value="<? echo $volume; ?>" size=9>

    Hth


    JBL
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Sacramento
    Posts
    50
    Rep Power
    14
    works great! Thank you!

Similar Threads

  1. How to read multiple line text file into a variable
    By gatewaycityca in forum Visual Basic Programming
    Replies: 4
    Last Post: January 29th, 2004, 12:26 PM
  2. generate dropdown list box based on a variable
    By solovaz in forum HTML Programming
    Replies: 0
    Last Post: January 24th, 2004, 05:28 AM
  3. dropdown onChange to alter php variable
    By dijon in forum PHP Development
    Replies: 3
    Last Post: January 12th, 2004, 12:45 PM
  4. jump menu with an asp variable
    By bleutiger in forum ASP Programming
    Replies: 4
    Last Post: January 11th, 2004, 01:17 PM
  5. getting truncated results with text box
    By trisha150 in forum PHP Development
    Replies: 2
    Last Post: January 3rd, 2004, 04:58 PM

IMN logo majestic logo threadwatch logo seochat tools logo