If isempty - inserting   into a database
Posted on 2004-10-16
You would this this would be a no-brainer, but I'm having difficulty...
If the user leaves a field blank, I want to insert " " into the database. No big deal. Problem is, I must have it scripted incorrectly because what I have returns absolutely nothing.
Take a look:
if NOT isempty (Request.Form("BusName")) then
x = Replace(Request.Form("BusName"),"'","''")
x = "Hello"
When Request.Form("BusName") is empty, while there's no error on the page, "x" doesn't register at all. I get a blank page as opposed to "Hello".
What am I missing?