Event Hanadeling

Discussion in 'PHP' started by locus, Feb 26, 2007.

  1. #1
    Is there a way to handle events such as "onkeypress" without using javascript, if so do tell me how. For example, couuld i use:

     
    
    
    <p><input type="text" name="T1" size="20" onkeypress = "validate(variable);" ></p>
    
    PHP:
    Your time and attention is appreciated.

    where "validate" is a function called in a php block (ie. between some php tags)?
     
    locus, Feb 26, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    No with simple HTML. For actions against events you need some kind of "program", usually javascript or JAVA.
     
    ajsa52, Feb 26, 2007 IP
  3. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    This is impossible to handle events without JavaScript ... as HTML is pretty static ... when JavaScript provides some dynamic methodology ... It becomes DHTML
     
    rays, Feb 26, 2007 IP
  4. locus

    locus Guest

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your responses were much appreciated
     
    locus, Feb 26, 2007 IP