+ Reply to Thread
Results 1 to 3 of 3

Thread: Compound

  1. #1
    Brandon Guest

    Compound

    I have two textfields lets say in one I have cow in the other I have bell. Can I have that go to a third field thats Cowbell?

  2. #2
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: Compound

    What exactly do you mean? You can join together the values of two seperate text inputs once the form has been submitted by doing something like:

    Code:
    <input type="text" name="whatever">
    <input type="text" name="hmmha">
    Code:
    ...
    $value1 = $_POST['whatever'];
    $value2 = $_POST['hmmha'];
    
    $joinedval = $value1.$value2;
    ...
    I think that's what you mean? I'm not 100% sure though. You can join any two or more variables in PHP by placing a period between them, like I just showed.

  3. #3
    03moscropl's Avatar
    03moscropl is offline Flash Freak 03moscropl is an unknown quantity at this point
    Join Date
    Jun 2005
    Location
    England
    Posts
    349

    Re: Compound

    I have two textfields lets say in one I have cow in the other I have bell. Can I have that go to a third field thats Cowbell?
    is it a riddel :pinch:
    my customised games module for phpnuke
    http://dragongamer.net/modules.php?name=arcade

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers