37 users online (0 members and 37 guests)  


  Results 1 to 3 of 3

Related

  1. Updating a field, how.. Plz help.    Forum: Databases
    Replies: 2
  2. scrolling blog entry box    Forum: Myspace Forum
    Replies: 3
  3. How do I make an entry form with cgi script?    Forum: CGI Perl Forum
    Replies: 2
  1. #1
    frankarrow's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2002
    Posts
    5

    Question Update field but don't allow entry.

    Hi,

    Wondering if anyone has come across this?

    I have a javascript form that fills in an extended amount based on the quanity and price of the item. It takes this value and puts it in a field. This field is defined as:
    <INPUT TYPE="TEXT" NAME="EXT1" VALUE="">

    My question is when you change the quanity it updates this field but I DO NOT people viewing the page to be able to update this field. Is there a way to change the type of field and still allow the javascript to change its value?

    Thanks,

    Frank

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    I have not tested this to see if it updates at all (lotsa code, urgh) but try -

    Code:
    <input type="text" name="EXT1" value="" readonly>
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    frankarrow's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2002
    Posts
    5

    Smile That did it!

    Thanks for your help. Worked like a charm. I looked all over the web for hours to try and find that but couldn't. Much appreciated!

    Frank



Tags for this Thread