php or java script for List of values?

Discussion in 'PHP' started by davur, Feb 24, 2006.

  1. #1
    Hi

    I'm new to php. In my web-form I want to present some values for my users in a new window, a popup, so they can choose a value. The value they choose shall be inserted in the "opener" field. Does php support methods to handle these thing or must I use java script?
     
    davur, Feb 24, 2006 IP
  2. UptimeAgent

    UptimeAgent Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi.

    If you would like to do that without the opener page reload then you need to use JavaScript.

    Rough example of the code for your selection window:
    <a href="javascript:void(0)" onClick="window.opener.document.someForm.someField.value='One of the values'">One of the values</a>
    Code (markup):
    If you have additional questions please post them.
     
    UptimeAgent, Feb 24, 2006 IP
  3. journalist009

    journalist009 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hey hi, Can you guys suggest that whether PHP is more SEO friendly or Java ???
     
    journalist009, Mar 9, 2011 IP