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.

How to make button readonly?

Discussion in 'PHP' started by lost, Oct 31, 2005.

  1. #1
    I need to make a button readonly or not clickable...i was informed on the following but it only works for textfields not buttons. Anyone??
    echo '<INPUT TYPE=button VALUE="Modify" READONLY="readonly" NAME="modifybutton" />';
    Code (markup):

     
    lost, Oct 31, 2005 IP
  2. imaginemn

    imaginemn Peon

    Messages:
    20
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try using the following:

    <INPUT TYPE=button VALUE="Modify" disabled="disabled" NAME="modifybutton" />
     
    imaginemn, Oct 31, 2005 IP
  3. lost

    lost Peon

    Messages:
    144
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you!
     
    lost, Nov 1, 2005 IP