Results 1 to 4 of 4
Mar 28, 2014, 03:01 #1
- Join Date
- Feb 2006
- Chepstow, South Wales
- 0 Post(s)
- 0 Thread(s)
Validation error cause by spaces in value of url string
I have added an option on my clients website to allow visitors to enquire about their stock, its just a simple click and then they get a pop up form, they love it as they are getting more business, but its creating 1 validation error which is stopping me getting the green light, and its very annoying.
Here is the link to the validator and the error -
When the user clicks the link on the site its grabbing the name of the clock and the ref number and passing it to the pop up via the url, and basically the spaces between the names is whats causing the errors.
you can see it for yourself by going here -
and click 'here' in the click here to make an enquiry above the clock.
By the way i didnt build this site, its quite old and I'm helping out with SEO, and the code below is where I need some help.
OpenDB sSQL = "SELECT * FROM products WHERE PID = " & pid & " AND (Status = 'SHOW' OR Status = 'SOLD')" OpenRS(sSQL) If Not rs.BOF And Not rs.EOF Then arr = rs.GetRows For i = 0 To UBound(arr,2) set fs=Server.CreateObject("Scripting.FileSystemObject") wr "<div class='Clock' style='position:relative; width:100%; height:22px; line-height:25px; text-align:center;'>I am interested in this item - click <a href='../stock_Enquiry.asp?ID=" & pid & "&Name=" & arr(1,i) & "' style='font-size:12px; text-decoration:underline;' onClick='showPopup(this.href); return(false);'>here</a> to make an enquiry" & vbcrlf wr "</div>" & vbcrlf
Name=" & arr(1,i) & "