Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help a novice

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi,
Never written a singe CGI script, but I guess I would need to, so I am asking for your help.

I have a HTML form.
I need to take a value from the form, then open ODBC connection to the SQL Server table and look if the value taken from the form is in the table. If it is, then I open 1.asp page, if not, then I need open 2.asp page.

So, as I understand, I would have to write cgi script to such processing. Am I wrong?

If not, would anybody share an example of cgi script that would do the ODBC connection and execute SQL statement.

Please, I am desperate for your help.

Thanks.
 
If you are using ASP on two pages already, why don't you want to use ASP to do the chores you describe? ASP will do it just fine. I'd go check out the ASP forum.

If you have to do this with CGI, I'd be glad to help you find your way into CGI. (I play with Perl, so all my support would look, smell, and feel like Perl.)

What ever works. 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top