HTMLencode question

Results 1 to 3 of 3

Thread: HTMLencode question

  1. #1
    Kentium Guest

    Default HTMLencode question

    So...I want a text box with a default value:<BR><BR>&#060;input type=text name=age value="Enter Age Here"&#062;<BR><BR>How can I incorporate a default value in my text box value and still use Server.HTMLEncode(Request("req_fname")) ?<BR><BR>I&#039;m confused...If I put the Server.HTMLEncode stuff in the value field, I can&#039;t have a default.<BR><BR>Any help is GREATLY appreciated.

  2. #2
    Join Date
    Dec 1969

    Default RE: HTMLencode question

    value = "&#060;%if not Request("name") = "" <BR> Response.write Server.HTMLEncode(Request("name"))<BR> else<BR> Response.write "Enter name here"<BR> end if<BR> %&#062;" <BR>

  3. #3
    Kentium Guest

    Default RE: HTMLencode question ROCK!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts