RussellDonders
Programmer
Hi,
I tried searching for an answer to this but couldnt find a suitable solution.
I have 2 pages, one with a form to collect details about a person and a second that reads in this data and does stuff with it.
When all the values are entered on the form and submitted all works fine so I know I have everything set up right in that regard.
The problem occurs when the user leaves out an optional field .. such as company name. WHen this occurs I get an Internal Server Error when the 2nd asp page starts processing.
I am retrieving the values with lines such as :
set vcompany = Request.Form("company"
Is there another way I can do this to instead of having the script die if there is nothing in the company variable sent from my first form that it just enters into the vcompany variable an empty entry ?
I tried doing some error checking first to trick it into it :
if isNull(Request.Form("company") then
vcompany = "";
else
set vcompany = Request.Form("company"
end if
but that didnt work.
Any help would be appreciated.
Thanks,
Russell
I tried searching for an answer to this but couldnt find a suitable solution.
I have 2 pages, one with a form to collect details about a person and a second that reads in this data and does stuff with it.
When all the values are entered on the form and submitted all works fine so I know I have everything set up right in that regard.
The problem occurs when the user leaves out an optional field .. such as company name. WHen this occurs I get an Internal Server Error when the 2nd asp page starts processing.
I am retrieving the values with lines such as :
set vcompany = Request.Form("company"
Is there another way I can do this to instead of having the script die if there is nothing in the company variable sent from my first form that it just enters into the vcompany variable an empty entry ?
I tried doing some error checking first to trick it into it :
if isNull(Request.Form("company") then
vcompany = "";
else
set vcompany = Request.Form("company"
end if
but that didnt work.
Any help would be appreciated.
Thanks,
Russell