1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is this possible? Yes or No.

Discussion in 'PHP' started by explorer, Jan 10, 2007.

  1. #1
    I posted a few days ago offering $15 for some work, but it either wasn't enough or nobody could do it.

    So, what I'd like to know now is, whether the job is possible at all, in particular:

    [​IMG]

    A user is presented with three numbers in a row - Row 1, say, each of which has a radio button next to it enabling the user to select the number - for example number a, b or c.

    Is it possible to use the radio button click to take the adjacent number and place it into the text box in column 4? The user must also be able to fill in the text box with their own number if none of the choices are suitable. Finally the user would click the add button to add up all of the numbers in col 4.

    You don't need to say how to do it, but if you could let me know can this be done in php?, that would be great. Thank you.
     
    explorer, Jan 10, 2007 IP
  2. ZareMedia

    ZareMedia Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes this could, in a roundabout and unnecessarily complex manner be accomplished in PHP. It wouldn't do exactly what you are after though.

    What you want to be looking to use would be Javascript.
     
    ZareMedia, Jan 10, 2007 IP
    explorer likes this.
  3. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Yup, you will want to use hidden inputs to hold the data, then javascript to move the data from hidden input to textbox.
     
    ccoonen, Jan 10, 2007 IP
    explorer likes this.
  4. rb3m

    rb3m Peon

    Messages:
    192
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can. Why you should instead of simply allowing the user to input their own numbers in the box and using javascript to validate the entry if necessary, that I don't know. But you can.
     
    rb3m, Jan 10, 2007 IP
  5. kohashi

    kohashi Well-Known Member

    Messages:
    1,198
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    140
    #5
    php won't lload anything new unless you refresh or use something like javascript to pass data back and forth.
     
    kohashi, Jan 10, 2007 IP
    explorer likes this.
  6. make.universal

    make.universal Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes its possible
     
    make.universal, Jan 10, 2007 IP
  7. smallbuzz

    smallbuzz Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    its easy with php.
    its easier with javascript.
     
    smallbuzz, Jan 10, 2007 IP
  8. DomainMaster

    DomainMaster Banned

    Messages:
    576
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #8
    PHP is not the best option in this case. Like all others said it's easier to do it with JavaScript.
     
    DomainMaster, Jan 10, 2007 IP
    explorer likes this.
  9. explorer

    explorer Well-Known Member

    Messages:
    463
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #9
    Okay thank you very much for those replies. I'll repost in the javascript forum. :)
     
    explorer, Jan 11, 2007 IP