|
-
Oct 4th, 2002, 09:39 PM
#1
Thread Starter
New Member
replace function.....
hi
i have one textfield to replace single quote and double quote into 2 single quotes but when i display i can onli display single quote but for the double quote i did not displayed out so can enlightened me...thank alot..
countryName = repalce(request.form("CountryNameTF"), "'", "''")
countryName = replace(request.form("CountryNameTF")), chr(34), "''")
response.write "<td width='15%' height='20' valign='top'>" response.write Country_ID
response.write "</td><input type='hidden' name='CountryID' value="
response.write Country_ID
response.write ">"
response.write "<td width='30%' height='20' valign='top'><input type='text' name='CountryNameTF' value="""
response.write trim(CountryName)
response.write """ size='30' maxlength='50' class='formtextfield'>" response.write "<td width='10%' height='20' valign='top'><input type='button' value='"
response.write localizedData(lang, UpdateBtn)
response.write "' name='submit_but' class='formbutton' onClick='submit_but_onclick();'></td>" response.write "<td width='10%' height='20' valign='top'></td>"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|