•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 423,657 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,165 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 4178 | Replies: 2
![]() |
•
•
Join Date: Mar 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hello,
My question is about an HTML form using "POST" method.
I'm using a simple HTML form, from which I get back my variables with this code :
sLastName = Request.Form.Item("LastName")
This work correctly.
But when the user fill the blank field with a string containing " ' ", I only get the first part of the field, before the '.
I've tried to use the following code instead :
sLastName = Replace(Request.Form.Item("LastName"),"'","''")
But this doesn't work anymore.
Any ideas on how to get the full field with the " ' " ?
Regards.
My question is about an HTML form using "POST" method.
I'm using a simple HTML form, from which I get back my variables with this code :
sLastName = Request.Form.Item("LastName")
This work correctly.
But when the user fill the blank field with a string containing " ' ", I only get the first part of the field, before the '.
I've tried to use the following code instead :
sLastName = Replace(Request.Form.Item("LastName"),"'","''")
But this doesn't work anymore.
Any ideas on how to get the full field with the " ' " ?
Regards.
•
•
Join Date: Feb 2005
Location: Los Angeles, CA
Posts: 86
Reputation:
Rep Power: 4
Solved Threads: 2
Code:
Dim sLastName
sLastName = Request.Form("LastName")
sLastName = Replace(sLastName, "'", "''")
Dim sLastName
sLastName = Request.Form("LastName")
sLastName = Replace(sLastName, "'", "''")
Dexter Zaf
Ex-designz.net
Ex-designz.net
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- how to send data in POST method using javascript (JavaScript / DHTML / AJAX)
- Help me about Http Client Post method (HTML and CSS)
- ASP Replace Function.... (ASP)
Other Threads in the ASP Forum
- Previous Thread: Remove Pop Up
- Next Thread: Help adding records


Linear Mode